The JavaFX application framework supports several fundamental shape constructs that can be readily used. In addition to geometrical shapes, JavaFX also supports textual shapes to draw text on the screen. The following code segment draws several of the fundamental geometrical shapes supported by JavaFX:
One of the most fundamental node types available in JavaFX is the Text node. It is used to draw letter shapes on the screen that can be manipulated like any other shapes offered by the JavaFX platform. The code below draws a simple Text on the screen with content "This is a simple text demo."