Package javafx.scene

Examples of javafx.scene.Scene


        }

        loadCustomFonts(opts);

        Browser browser = new Browser(path, output, width, height);
        scene = new Scene(browser, width, height, Color.web("#666970"));
        stage.setScene(scene);
        stage.show();
        Profile profile = ProfileLoader.loadProfile(opts.get("profile"), browser.getEngine(), opts);
        browser.doExport(profile, width, height);
    }
View Full Code Here


        (ChangeListener<State>) (ov, oldState, newState) -> {
          if (newState == State.SUCCEEDED) {
            changeState(engine.getLocation());
          }
        });
    primaryStage.setScene(new Scene(view));
    primaryStage.show();

    new Thread(() -> {
      while (!loginSuccess && !loginFailure && primaryStage.isShowing()) {
View Full Code Here

    root.getChildren().add(durationLabel);
    durationLabel.setTranslateX(-25);
    vbox.setMaxWidth(screenWidth);

    hbox.setTranslateY(translatLocation);
    final Scene scene = new Scene(root, screenWidth, screenHeight,
        Color.rgb(35, 35, 35));
    hbox.setMinWidth(screenWidth);
    final int bandWidth = screenWidth / rects.length;
    int recheight = 2;
    for (final Rectangle r : rects) {
View Full Code Here

    view.setFitHeight(1);
    view.setPreserveRatio(false);

    // System.out.println("media.width: "+media.getWidth());

    final Scene scene = new Scene(root, 1, 1, Color.BLACK);

    // player.play();

    player.setOnReady(() -> {
      player.setAutoPlay(false);
View Full Code Here

    final Gauge gauge3 = new Gauge(IndicatorType.NEEDLE, 0.5d, 0.5d, "%04.2f", 0, 0d, 360d, 20, 1);
    final Gauge gauge6 = new Gauge(IndicatorType.NEEDLE, 0.5d, 1d, "%04.2f", 0, 250d, 310d, 10, 0);
    row2.getChildren().addAll(gauge3, gauge6);
   
    root.getItems().addAll(row1, row2);
    primaryStage.setScene(new Scene(root));
    primaryStage.show();
  }
View Full Code Here

      }
    });
    // stage/scene adjustment for transparency/size
    this.setMinSize(minResizableWidth, minResizableHeight);
    stage.initStyle(StageStyle.TRANSPARENT);
    stage.setScene(new Scene(this, sceneWidth, sceneHeight, Color.TRANSPARENT));
    setAlignment(Pos.TOP_LEFT);
    if (cssPaths != null) {
      for (final String cssPath : cssPaths) {
        stage.getScene().getStylesheets().add(cssPath);
      }
View Full Code Here

        }
      });
      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

      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

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

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

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.