Package javafx.scene

Examples of javafx.scene.Scene


     */
    @FXML
    protected void showCreateLeagueWindow(final ActionEvent event) {
        // build dialogue with builder
        final Parent root = new CreateLeagueSceneBuilder().buildScene();
        final Scene scene = new Scene(root);
        scene.getStylesheets().add("stylesheet.css");
        final Stage stage = new Stage();
        stage.setScene(scene);
        stage.setResizable(false);
        stage.initModality(Modality.APPLICATION_MODAL);
        stage.setTitle(ResourceLoader.getResource("label.title.createLeague"));
View Full Code Here


        //            root = FXMLLoader.load(getClass().getResource(SCENE_CREATE_LEAGUE), ResourceBundle.getBundle("ApplicationResources"));
        //        } catch (final IOException e) {
        //            e.printStackTrace();
        //        }

        final Scene scene = new Scene(root);
        scene.getStylesheets().add("stylesheet.css");
        final Stage stage = new Stage();
        stage.setScene(scene);
        stage.setResizable(false);
        stage.initModality(Modality.APPLICATION_MODAL);
        stage.setTitle(ResourceLoader.getResource(TITLE_CREATE_LEAGUE));
View Full Code Here

        Application.launch(args);
    }

    @Override
    public void start(Stage stage) {
        Scene scene = new Scene(new BorderPane());
        scene.getStylesheets().add("stylesheet.css");
        stage.setTitle("java-asn1-goose parser");
        stage.setWidth(570);
        stage.setHeight(550);
        init(scene);
        stage.setScene(scene);
View Full Code Here

                @Override
                public Object call(Class<?> aClass) {
                    return applicationContext.getBean(aClass);
                }
            });
            dialog.setScene(new Scene((Parent) loader.load()));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return dialog;
    }
View Full Code Here

            header.setTextFill(Color.DARKRED);
            return;
        }
        ((Stage) header.getScene().getWindow()).close();
        Stage primaryStage = CustomerApp.getPrimaryStage();
        primaryStage.setScene(new Scene(customerDataScreen, 777, 500));
        primaryStage.show();
    }
View Full Code Here

        draw(gc);

        root.getChildren().add(canvas);

        primaryStage.setScene(new Scene(root, width, height));
        primaryStage.show();
    }
View Full Code Here

                public Object call(Class<?> aClass) {
                    return controller;
                }
            });
            controller.setDialog(this);
            setScene(new Scene((Parent) loader.load()));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

    public void setPrimaryStage(Stage primaryStage) {
        this.primaryStage = primaryStage;
    }

    public void showScreen(Parent screen) {
        primaryStage.setScene(new Scene(screen, 777, 500));
        primaryStage.show();
    }
View Full Code Here

        (new LogUtils()).setupLogger();
        Utils.printVersion();
       
        Parent root = FXMLLoader.load(getClass().getResource("ui/MainUI.fxml"));
       
        Scene scene = new Scene(new BorderPane(), 1, 1);
        scene.setFill(null);
       
        stage.initStyle(StageStyle.TRANSPARENT);
        stage.setScene(scene);
        stage.show();
       
View Full Code Here

        grid.add(sField, 6, 4);
        grid.add(msSeparator, 7, 4);
        grid.add(msField, 8, 4);
        grid.add(hbBtn, 1, 6, 8, 1);
       
        Scene scene = new Scene(grid, 300, 250);
       
        scene.getStylesheets().add("org/livesub/styles/GlobalStyle.css");
       
        primaryStage.setResizable(false);
        primaryStage.setTitle("Go To");
        primaryStage.setScene(scene);
        primaryStage.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.