Created
November 27, 2014 00:28
-
-
Save skrb/ef6d22edab7d3c1c6a82 to your computer and use it in GitHub Desktop.
Circle Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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