In general, Line can be defined as the geometrical structure which joins two points (X1,Y1) and (X2,Y2) in a X-Y coordinate plane. JavaFX allows the developers to create the line on the GUI of a JavaFX application. JavaFX library provides the class Line which is the part of javafx.scene.shape package.
How to create a Line?
Follow the following instructions to create a Line.
Line class contains various properties described below.
Example 2 : Creating Multiple Lines