List of usage examples for javafx.stage Stage show
@Override public final void show()
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox choiceBox = new ChoiceBox(cursors); System.out.println(choiceBox.converterProperty()); VBox box = new VBox(); box.getChildren().add(choiceBox);/*w w w.j a va2 s . c om*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { Group group = new Group(); Rectangle rect = new Rectangle(20, 20, 200, 200); rect.setStrokeWidth(2);// ww w . j a v a2 s . co m rect.setStroke(Color.RED); group.getChildren().add(rect); Scene scene = new Scene(group, 300, 200); primaryStage.setScene(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Label msg = new Label("java2s.com"); msg.setStyle("-fx-text-fill: blue;"); VBox root = new VBox(); root.getChildren().add(msg);/*from ww w. j a v a 2 s . c o m*/ Scene scene = new Scene(root, 300, 50); stage.setScene(scene); stage.setTitle("Hello JavaFX Application with a Scene"); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors); System.out.println(choiceBox.getValue()); VBox box = new VBox(); box.getChildren().add(choiceBox);/*from ww w . j av a 2s . c om*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors); System.out.println(choiceBox.isShowing()); VBox box = new VBox(); box.getChildren().add(choiceBox);/*from w w w .j a v a2 s.c o m*/ final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, Color.RED); System.out.println(circ.radiusProperty().doubleValue()); final Group root = new Group(circ); final Scene scene = new Scene(root, 400, 300); primaryStage.setScene(scene);//from w w w . j a v a2 s .co m primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage stage) throws IOException { URL fxmlUrl = this.getClass().getClassLoader().getResource("resources/fxml/sayhello.fxml"); // Load the FXML document VBox root = FXMLLoader.<VBox>load(fxmlUrl); Scene scene = new Scene(root); stage.setScene(scene);/*from w w w . java 2 s . co m*/ stage.setTitle("Hello FXML"); stage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, Color.RED); System.out.println(circ.centerXProperty().doubleValue()); final Group root = new Group(circ); final Scene scene = new Scene(root, 400, 300); primaryStage.setScene(scene);//from w ww. j a va 2 s . c om primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, Color.RED); System.out.println(circ.centerYProperty().doubleValue()); final Group root = new Group(circ); final Scene scene = new Scene(root, 400, 300); primaryStage.setScene(scene);/*from w w w . ja v a 2 s. com*/ primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { stage.initStyle(StageStyle.UNDECORATED); Text text = new Text("Transparent!"); text.setFont(new Font(40)); VBox box = new VBox(); box.getChildren().add(text);//from ww w.j a va2 s. c o m final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }