JavaFX provides the flexibility to create our own 2D shapes on the screen. There are various classes that can be used to implement 2D shapes in our application. All these classes reside in javafx.scene.shape package. This package contains the classes which represent different types of 2D shapes. There are several methods in the classes which deal with the coordinates regarding 2D shape creation.