Examples of Scene


Examples of javafx.scene.Scene

        }
      });
      final VBox root = new VBox(0);
      VBox.setMargin(btn, Insets.EMPTY);
      root.getChildren().add(btn);
      notifyPopup.setScene(new Scene(root, NOTIFY_WINDOW_WIDTH,
          NOTIFY_WINDOW_HEIGHT, Color.TRANSPARENT));
      notifyPopup.getScene().getStylesheets().add(RS.path(RS.CSS_MAIN));
      positionNotification();
      notifyPopup.show();
      // TODO : set notification to full screen so that toFront() will
View Full Code Here

Examples of javafx.scene.Scene

      dummyPopup.initModality(Modality.NONE);
      dummyPopup.initStyle(StageStyle.UTILITY);
      dummyPopup.setOpacity(0d);
      final Group root = new Group();
      root.getChildren().add(new Text("Close"));
      dummyPopup.setScene(new Scene(root, NOTIFY_WINDOW_WIDTH,
          NOTIFY_WINDOW_HEIGHT, Color.TRANSPARENT));
      dummyPopup.setX(bounds.getMaxX());
      dummyPopup.setY(bounds.getMaxY());
      dummyPopup.show();
View Full Code Here

Examples of javafx.scene.Scene

                dumpPojo(oldValue, newValue, personPA);
              }
            });
      }
    });
    primaryStage.setScene(new Scene(createRoot()));
    primaryStage.show();
  }
View Full Code Here

Examples of javafx.scene.Scene

    //pane.getChildren().addAll(box, Cursor.prompt);
    pane.setCenter(box);
    pane.setRight(Cursor.prompt);
    Cursor.prompt.setX(200);
   
    Scene myScene = new Scene(pane, 800, 600);
    //myScene.getStylesheets().add(Demo.class.getResource("/dasgui.css").toExternalForm());
    stage.setScene(myScene);
    stage.show();
  }
View Full Code Here

Examples of javafx.scene.Scene

         */
        Injector.setConfigurationSource(customProperties::get);

        System.setProperty("happyEnding", " Enjoy the flight!");
        DashboardView appView = new DashboardView();
        Scene scene = new Scene(appView.getView());
        stage.setTitle("followme.fx");
        final String uri = getClass().getResource("app.css").toExternalForm();
        scene.getStylesheets().add(uri);
        stage.setScene(scene);
        stage.show();
    }
View Full Code Here

Examples of javafx.scene.Scene

            public Boolean reached() {
                try {
                    Thread.sleep(100); // otherwise mac doesn't start
                } catch (InterruptedException ex) {
                }
                Scene scene = Root.ROOT.lookup(new ByWindowType(Stage.class)).lookup(Scene.class).wrap(0).getControl();
                return scene.getWindow().isShowing() ? Boolean.TRUE : null;
            }
        });
    }
View Full Code Here

Examples of javafx.scene.Scene

                .successionEnds(Duration.ofMillis(500))
                .subscribe(html -> engine.loadContent(html));

        SplitPane root = new SplitPane();
        root.getItems().addAll(textArea, webView);
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();
    }
View Full Code Here

Examples of javafx.scene.Scene

   
   
    public void createView(){
        this.dialogStage = new Stage();
        dialogStage.initModality(Modality.WINDOW_MODAL);
        Scene scene = new Scene(root);

        dialogStage.setScene(scene);
        dialogStage.setTitle("New Script");
        dialogStage.centerOnScreen();
        dialogStage.show();
View Full Code Here

Examples of javafx.scene.Scene

        ToolBar toolbar = (ToolBar) toolbarView.getViewWithoutRootContainer();

        BorderPane pane = new BorderPane();
        pane.setTop(toolbar);
        pane.setCenter(this.vertical);
        this.scene = new Scene(pane);
        scene.getStylesheets().add(this.getClass().getResource("lightview.css").toExternalForm());
        stage.setFullScreen(false);
        stage.setScene(scene);
        stage.show();
    }
View Full Code Here

Examples of javafx.scene.Scene

    @Override
    public void start(Stage primaryStage) throws Exception{
        Parent root = FXMLLoader.load(getClass().getResource(RESOURCE));
        primaryStage.setTitle("JMetro");
        root.getStylesheets().add(getClass().getResource(STYLE_SHEET).toExternalForm());
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();

        ScenicView.show(scene);
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.