JavaFX Script was designed with the sole intent of being a language to create graphically-rich user interfaces. Instead of the traditional imperative and dense boilerplate code (as found in Java and other general purpose languages), JavaFX adopted an intuitive and declarative scripting-style that lets developers quickly create complex graphical components with simplified constructs.
JavaFX benefited from years of experience that engineers at Sun Microsystems (now Oracle) gained creating desktop platforms such as Swing. Therefore, the JavaFX framework comes loaded with features and functionalities that make it ready for production-grade deployment.
In this chapter, we are going to explore how to use fundamental building blocks to create functional JavaFX applications. This chapter covers the following topics:
Shapes the most basic representation of a visual element is the geometric shape. You will learn how to create simple and complex shapes using
Shape
classes....