Examples of Scene


Examples of javafx.scene.Scene

                                    }
                                };
                            }
                        });
                        listView.getItems().setAll(fxForm.getConstraintViolations());
                        Scene scene = new Scene(listView);
                        Stage stage = new Stage();
                        stage.setScene(scene);
                        stage.show();
                    }
                }).build();
View Full Code Here

Examples of javafx.scene.Scene

        instance2.setName("Julio");
        instance2.setAge(4);
        new ObjectPropertyObserver(instance1);
        new ObjectPropertyObserver(instance2);
        final FXForm fxForm = createFXForm();
        Scene scene = new Scene(root);
        scene.getStylesheets().add(Demo.class.getResource("style.css").toExternalForm());
        ChoiceBox<FXFormSkinFactory> skinChoiceBox = new ChoiceBox<FXFormSkinFactory>();
        skinChoiceBox.getItems().addAll(FXFormSkinFactory.DEFAULT_FACTORY, FXFormSkinFactory.INLINE_FACTORY);
        skinChoiceBox.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<FXFormSkinFactory>() {
            public void changed(ObservableValue<? extends FXFormSkinFactory> observableValue, FXFormSkinFactory fxFormSkin, FXFormSkinFactory fxFormSkin1) {
                fxForm.setSkin(fxFormSkin1.createSkin(fxForm));
View Full Code Here

Examples of javafx.scene.Scene

   
    @Override
    public void start(Stage stage) throws Exception {
        Parent root = FXMLLoader.load(getClass().getResource("RandomEventsMain.fxml"));
       
        Scene scene = new Scene(root);
       
        stage.setScene(scene);
        stage.show();
    }
View Full Code Here

Examples of javafx.scene.Scene

        // set controller into provider
        ControllerProvider.getInstance().setMainController((MainController) loader.getController());

        // create scene and display window
        final Scene scene = new Scene(root, 1300, 900);
        scene.getStylesheets().add(FILE_STYLESHEETS);
        stage.setTitle(APPLICATION_TITLE);
        stage.getIcons().add(new Image(getClass().getResource(APPLICATION_ICON).toString()));
        stage.setScene(scene);
        stage.show();
    }
View Full Code Here

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

Examples of javafx.scene.Scene

        //            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

Examples of javafx.scene.Scene

        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

Examples of javafx.scene.Scene

                @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

Examples of javafx.scene.Scene

            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

Examples of javafx.scene.Scene

        draw(gc);

        root.getChildren().add(canvas);

        primaryStage.setScene(new Scene(root, width, height));
        primaryStage.show();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.