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<String> choiceBox = new ChoiceBox<String>(cursors); System.out.println(choiceBox.itemsProperty()); VBox box = new VBox(); box.getChildren().add(choiceBox);/*from ww w.j a v a 2 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 stage) { Button exitBtn = new Button("Exit"); exitBtn.setOnAction(e -> Platform.exit()); VBox root = new VBox(); root.getChildren().add(exitBtn);// w w w. ja v a2 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:br.com.ajaio.midas.desktop.controller.DashBoardController.java
public void addConta() throws IOException { Stage stage = new Stage(); Parent root = FXMLLoader.load(MainApp.class.getResource("view/popContaFormFXML.fxml")); stage.setTitle("Add new entry"); stage.setScene(new Scene(root, 800, 600)); stage.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);// www . ja v a 2 s . c o m final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); scene.setCursor(Cursor.WAIT); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(); choiceBox.setItems(cursors);/*ww w. j a v a2s . c o m*/ choiceBox.show(); VBox box = new VBox(); box.getChildren().add(choiceBox); 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) { Group root = new Group(); Scene scene = new Scene(root, 300, 150); stage.setScene(scene);//from ww w . j ava2s . c om stage.setTitle("Sample"); Text t = new Text(10, 50, "This is a test"); t.setText("First row\nSecond row"); t.setFont(new Font(20)); root.getChildren().add(t); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors); System.out.println(choiceBox.selectionModelProperty()); VBox box = new VBox(); box.getChildren().add(choiceBox);/*from ww w . jav a 2 s .co 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) { BorderPane bp = new BorderPane(); bp.setPadding(new Insets(10, 50, 50, 50)); Scene scene = new Scene(bp); primaryStage.setScene(scene);/*from w ww. j a va 2s. c om*/ primaryStage.titleProperty() .bind(scene.widthProperty().asString().concat(" : ").concat(scene.heightProperty().asString())); primaryStage.show(); }
From source file:Main.java
@Override public void start(final Stage stage) { stage.setWidth(500);/*from w ww . j a v a2s . c om*/ stage.setHeight(500); Scene scene = new Scene(new Group()); VBox root = new VBox(); CategoryAxis lineXAxis = new CategoryAxis(getData()); root.getChildren().addAll(lineXAxis); scene.setRoot(root); stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(); choiceBox.setItems(cursors);/*from w w w .j a v a 2 s . co m*/ choiceBox.setValue("a"); VBox box = new VBox(); box.getChildren().add(choiceBox); final Scene scene = new Scene(box, 300, 250); scene.setFill(null); stage.setScene(scene); stage.show(); }