JavaFX LineIn 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.
PropertiesLine class contains various properties described below.
Example 1:Output: Example 2 : Creating Multiple LinesOutput:
Next TopicJavaFX Rectangle
|