Skip to content

Instantly share code, notes, and snippets.

@darylwong
Created April 19, 2015 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darylwong/de580103485b1ea2ff8a to your computer and use it in GitHub Desktop.
Save darylwong/de580103485b1ea2ff8a to your computer and use it in GitHub Desktop.
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
public class DrawCircle extends Application {
@Override
public void start(Stage stage) {
StackPane root = new StackPane(new Circle(150, Color.DARKKHAKI));
stage.setScene(new Scene(root, 500, 400));
stage.show();
}
public static void main(String... args) {
launch(args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment