List of usage examples for javafx.stage Stage show
@Override public final void show()
From source file:memoryaid.GalleryController.java
@FXML private void HandleGalleryLinkAction(ActionEvent event) throws IOException { System.out.println("You clicked me!"); Parent Gallery = FXMLLoader.load(getClass().getResource("FamilySpecHome.fxml")); Scene Gallery_scene = new Scene(Gallery); Stage app_stage = (Stage) ((Node) event.getSource()).getScene().getWindow(); app_stage.hide();//from w w w .j a va 2 s . c o m app_stage.setScene(Gallery_scene); app_stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { ChoiceBox choiceBox = new ChoiceBox(); VBox box = new VBox(); box.getChildren().add(choiceBox);/*from w w w . j a v a 2 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(final Stage primaryStage) { primaryStage.setTitle("Animation"); Group root = new Group(); Scene scene = new Scene(root, 400, 300, Color.WHITE); primaryStage.setScene(scene);//from ww w . j ava2 s. co m addBouncyBall(scene); primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, 40, 30); final Group root = new Group(circ); final Scene scene = new Scene(root, 400, 300); primaryStage.setScene(scene);/*from ww w .ja v a 2 s .com*/ primaryStage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Circle circ = new Circle(40, Color.RED); final Group root = new Group(circ); final Scene scene = new Scene(root, 400, 300); primaryStage.setScene(scene);//ww w . j a v a 2s.co m primaryStage.show(); }
From source file:memoryaid.GalleryController.java
@FXML private void uploadImageAction(ActionEvent event) throws IOException { String imgPath = imagePathText.getText(); String baseName = FilenameUtils.getBaseName(imgPath); String destinationPath = "/Users/madhaviunnam/NetBeansProjects/MemoryAid/src/GalleryImages"; File destinationPathObject = new File(destinationPath + "/" + baseName + ".png"); File sourceFilePathObject = new File(imgPath); FileUtils.copyFile(sourceFilePathObject, destinationPathObject); Parent Gallery = FXMLLoader.load(getClass().getResource("Gallery1.fxml")); Scene Gallery_scene = new Scene(Gallery); Stage app_stage = (Stage) ((Node) event.getSource()).getScene().getWindow(); app_stage.hide();/*from w w w . j ava2 s .co m*/ app_stage.setScene(Gallery_scene); app_stage.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Group root = new Group(); Scene scene = new Scene(root, 500, 200); stage.setScene(scene);//from w ww . ja v a 2s.com ScrollBar s1 = new ScrollBar(); s1.setOrientation(Orientation.VERTICAL); root.getChildren().add(s1); stage.show(); }
From source file:Main.java
@Override public void start(Stage primaryStage) { primaryStage.setTitle("Title"); final Parameters params = getParameters(); final List<String> parameters = params.getRaw(); final String imageUrl = !parameters.isEmpty() ? parameters.get(0) : ""; primaryStage.show(); }
From source file:Main.java
@Override public void start(final Stage primaryStage) { primaryStage.setTitle("Dialog"); Group root = new Group(); Scene scene = new Scene(root, 400, 300, Color.WHITE); primaryStage.setScene(scene);/*from w w w . j ava 2 s . c o m*/ primaryStage.show(); Stage myDialog = new MyDialog(primaryStage); myDialog.sizeToScene(); myDialog.show(); }
From source file:Main.java
@Override public void start(Stage stage) { Group root = new Group(); Scene scene = new Scene(root, 600, 400); stage.setScene(scene);/*w ww . ja v a2 s . c o m*/ stage.setTitle("Slider Sample"); Slider slider = new Slider(0, 1, 0.5); root.getChildren().add(slider); stage.show(); }