Package javafx.scene

Examples of javafx.scene.Scene


        root.setCenter(table);
        root.setBottom(bottomBox);
       
        initListeners();
       
        scene = new Scene(root, 500, 600);
        scene.getStylesheets().add("org/livesub/styles/DownloaderUIStyle.css");
       
        primaryStage.setTitle("Find Subtitles Online");
        primaryStage.setScene(scene);
        primaryStage.show();
View Full Code Here


            this.stageMap.get(stageKey).show();

        } else {

            final Region rootPane = getRootPane(swb);
            final Scene scene = getScene(swb, rootPane);
            final Stage stage = getStage(swb, scene);

            // Show the stage
            this.stageMap.put(stageKey, stage);
View Full Code Here

     * @param swb the swb
     * @param region the region
     * @return the scene
     */
    private Scene getScene(final StageWaveBean swb, final Region region) {
        Scene scene = swb.getScene();
        if (scene == null) {
            scene = SceneBuilder.create()
                    .root(region)
                    .build();
        } else {
            scene.setRoot(region);
        }
        return scene;
    }
View Full Code Here

     */
    @Override
    public void start(final Stage stage) throws Exception {

        final Pane p = new Pane();
        final Scene scene = new Scene(p, 800, 600);

        stage.setScene(scene);

        p.setMaxWidth(800);
        p.setMaxHeight(600);
View Full Code Here

        this.messageText = new Text("Loading");
        p.getChildren().add(this.messageText);
        StackPane.setAlignment(this.messageText, Pos.BOTTOM_CENTER);
        StackPane.setMargin(this.messageText, new Insets(10));

        return new Scene(p, 600, 200, Color.TRANSPARENT);
    }
View Full Code Here

        vBox.getChildren().add(route1);
        vBox.getChildren().add(open2);
        vBox.getChildren().add(route2);
        vBox.getChildren().add(btn);
        root.getChildren().add(vBox);
        primaryStage.setScene(new Scene(root, 900, 700));
        primaryStage.show();
    }
View Full Code Here

        // create scene
        BorderPane lBorderPane = new BorderPane();
        lBorderPane.setCenter(lAgenda);
        lBorderPane.setBottom(lHBox);
        //lBorderPane.setLeft(new Label("AAAAAAA"));
        Scene scene = new Scene(lBorderPane, 900, 900);

        // create stage
        stage.setTitle(this.getClass().getSimpleName());
        stage.setScene(scene);
        stage.show()
View Full Code Here

          lVBox.getChildren().add(lImageView);
        lBorderPane.setLeft(lVBox);
        lBorderPane.getStyleClass().add("screen");
       
        // setup scene
    Scene scene = new Scene(lBorderPane, 1000, 600);
   
    // load custom CSS
        scene.getStylesheets().addAll(this.getClass().getResource(this.getClass().getSimpleName() + ".css").toExternalForm());
//        try
//    {
////        File f = new File("/Documents and Settings/User/My Documents/jfxtras-styles/src/jmetro/JMetroLightTheme.css");
//        File f = new File("/Documents and Settings/User/My Documents/jfxtras-styles/src/jmetro/JMetroDarkTheme.css");
//      scene.getStylesheets().addAll(f.toURI().toURL().toExternalForm());
View Full Code Here

      }
      lFlowPane.getChildren().add(lCircularPane);
    }

        // setup scene
    Scene scene = new Scene(lFlowPane);
    //scene.getStylesheets().add(this.getClass().getName().replace(".", "/") + ".css");
   
        // create stage
        stage.setTitle(this.getClass().getSimpleName());
        stage.setScene(scene);
View Full Code Here

    lVBox.getChildren().add(new Button("old style"));
    lVBox.add(new Button("margin 20 nogrow"), new VBox.C().margin(new Insets(20.0)));
    lVBox.add(new Button("grow maxwidth 150"), new VBox.C().vgrow(Priority.ALWAYS).maxWidth(150.0));
       
        // setup scene
    Scene scene = new Scene(lVBox, 300, 400);
   
        // create stage
        stage.setTitle(this.getClass().getSimpleName());
        stage.setScene(scene);
        stage.show()
View Full Code Here

TOP

Related Classes of javafx.scene.Scene

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.