javafx how to get a set width and height of shape code example Example: javafx object rectangle Rectangle rectangle = new Rectangle(100,100)