package hellofx; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.Pane; import javafx.scene.paint.Color; import javafx.scene.shape.Circle; import javafx.stage.Stage; // circle public class GUI004 extends Application { @Override public void start(Stage stg1) throws Exception { Circle c = new Circle(); c.setCenterX(200); c.setCenterY(100); c.setRadius(50); c.setStroke(Color.ALICEBLUE); c.setStrokeWidth(5); c.setFill(Color.BISQUE); Pane pn = new Pane(); pn.getChildren().add(c); Scene scn = new Scene(pn, 400, 200); stg1.setTitle("Life's like a circle"); stg1.setScene(scn); stg1.show(); } public static void main(String[] args) { Application.launch(args); } }