java fx create rectangle object code example Example: javafx object rectangle Rectangle rectangle = new Rectangle(100,100)