Skip to content

Instantly share code, notes, and snippets.

@skrb
Created November 27, 2014 00:28
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 skrb/ef6d22edab7d3c1c6a82 to your computer and use it in GitHub Desktop.
Save skrb/ef6d22edab7d3c1c6a82 to your computer and use it in GitHub Desktop.
Circle Demo
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 CircleDemo extends Application {
@Override
public void start(Stage stage) {
StackPane root = new StackPane(new Circle(100, Color.RED));
stage.setScene(new Scene(root, 300, 300));
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