List of usage examples for javafx.scene.layout VBox getChildren
@Override
public ObservableList<Node> getChildren()
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox choiceBox = new ChoiceBox(cursors); System.out.println(choiceBox.getItems()); VBox box = new VBox(); box.getChildren().add(choiceBox); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//ww w . ja v a 2s. co m 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.getValue()); VBox box = new VBox(); box.getChildren().add(choiceBox); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);// w w w . j a v a 2 s. c o m 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 ava 2 s . co m 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) { ChoiceBox choiceBox = new ChoiceBox(cursors); System.out.println(choiceBox.getConverter()); VBox box = new VBox(); box.getChildren().add(choiceBox); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);// w w w . ja v a 2 s . c o m stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox<String> choiceBox = new ChoiceBox<String>(cursors); choiceBox.hide();//from w w w .ja v a2s .c o m 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) { Button exitBtn = new Button("Exit"); exitBtn.setOnAction(e -> Platform.exit()); VBox root = new VBox(); root.getChildren().add(exitBtn); Scene scene = new Scene(root, 300, 50); stage.setScene(scene);/* w w w. ja v a 2 s .c o m*/ 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.isShowing()); VBox box = new VBox(); box.getChildren().add(choiceBox); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);/*from w w w .j av a 2 s.co m*/ stage.setScene(scene); stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Button b1 = new Button("Close"); b1.setEffect(new DropShadow()); VBox root = new VBox(); root.getChildren().addAll(b1); Scene scene = new Scene(root); stage.setScene(scene);// www . j ava2 s . co m stage.setTitle("Testing LayoutBounds"); 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); final Scene scene = new Scene(box, 300, 250); scene.setFill(null);//from www. ja v a2s .co m stage.setScene(scene); stage.show(); scene.setCursor(Cursor.WAIT); }
From source file:Main.java
@Override public void start(Stage stage) { Button b1 = new Button("Close"); VBox root = new VBox(); root.getChildren().addAll(b1); Scene scene = new Scene(root); stage.setScene(scene);//from w ww .ja va2 s . c o m stage.setTitle(""); stage.show(); System.out.println("b1(layoutBounds)=" + b1.getLayoutBounds()); System.out.println("b1(boundsInLocal)=" + b1.getBoundsInLocal()); }