Examples of BorderPane


Examples of javafx.scene.layout.BorderPane

   * @param stage
   *            the primary {@link Stage}
   */
  protected void primaryStageBuild(final Stage stage) {
    controlBar.setStage(stage);
    final BorderPane content = new BorderPane();
    content.setId("main-content");
    content.setEffect(new InnerShadow());

    taskbar.setId("taskbar");
    taskbar.setCache(true);
    taskbar.setPrefHeight(TASKBAR_HEIGHT);

    centerView = new StackPane();
    centerView.setId("center-view");

    final Controls controls = new Controls(controlBar);

    wirelessConnectionView = new HostConnection(controlBar);
    mailConnectionView = new EmailHostConnection(controlBar);

    connectionView.setId("connection-view");
    connectionView.getChildren().addAll(wirelessConnectionView, createSeparator(Orientation.VERTICAL), mailConnectionView);

    final VBox bottom = new VBox();
    bottom.setId("bottom-view");
    bottom.getChildren().addAll(taskbar, new RemoteNodes(controlBar, Orientation.HORIZONTAL));

    content.setCenter(centerView);
    content.setBottom(bottom);
    content.setTop(controlBar);
   
    sensorReadingHistoryView = new SensorReadingHistory(controlBar);
    webSetupView = new WebBuilder(controlBar);

    taskbar.getChildren().add(genTaskbarItem(RS.IMG_CONNECT, RS.rbLabel(KEY.APP_CONNECTION_DESC), 0, new Runnable() {
View Full Code Here

Examples of javafx.scene.layout.BorderPane

  }
 
  @Override
  public void start(Stage stage) throws Exception {
    Locale.setDefault(Locale.ENGLISH);
    BorderPane pane = new BorderPane();
    Leaf l0 = new Leaf("Leaf_00");
    Leaf l1 = new Leaf("Leaf_01");
    Leaf l2 = new Leaf("Leaf_02");
    Leaf l3 = new Leaf("Leaf_03");
    Leaf l4 = new Leaf("Leaf_04");
    Leaf l5 = new Leaf("Leaf_05");
    Leaf l6 = new Leaf("Leaf_06");
    Leaf l7 = new Leaf("Leaf_07");
    Leaf l8 = new Leaf("Leaf_08");
    HComposite hc1 = new HComposite();
    HComposite hc2 = new HComposite();
    HComposite hc3 = new HComposite();
    HComposite hc4 = new HComposite();
    HComposite hc5 = new HComposite();
    HComposite hc6 = new HComposite();
    VComposite root = new VComposite();
    VComposite vc1 = new VComposite();
    VComposite vc2 = new VComposite();
    hc1.addAll(l1, l2);
    hc2.addAll(l3, l4);
    hc3.addAll(l5, l6);
    hc6.addAll(l1);
    vc1.addAll(hc1, hc2, hc6);
    vc2.addAll(hc3);
    hc4.addAll(l0, vc1, vc2);
    hc5.addAll(l7,l8);
    root.addAll(hc4,hc5);
    FormulaFrame.add(root);
   
     HBox hbox = new HBox(50);
     hbox.setAlignment(Pos.CENTER);
   
          VBox vbox1 = new VBox();
          vbox1.setAlignment(Pos.BOTTOM_CENTER);
          vbox1.setStyle("-fx-border-style: solid;"
                  + "-fx-border-width: 1;"
                  + "-fx-border-color: black");
         
          VBox vbox2 = new VBox(10);
          vbox2.setAlignment(Pos.CENTER);
          vbox2.setStyle("-fx-border-style: solid;"
                  + "-fx-border-width: 1;"
                  + "-fx-border-color: black");
         
          VBox vbox3 = new VBox(20);
          vbox3.setAlignment(Pos.TOP_CENTER);
          vbox3.setStyle("-fx-border-style: solid;"
                  + "-fx-border-width: 1;"
                  + "-fx-border-color: black");
     for (int i = 0; i < 5; i++)
          {
              Button bt = new Button("Button " + (i+1));
              Button bt2 = new Button("Button " + (i+1)); // unfortunately thereĀ“s no "clone" or "copy" method
              Button bt3 = new Button("Button " + (i+1));
              Pane hb = new Pane();
              HBox hb1 = new HBox();
              hb1.getChildren().add(bt2);
              hb.getChildren().add(hb1);
              vbox1.getChildren().add(bt);
              vbox2.getChildren().add(hb);
              vbox3.getChildren().add(bt3);
          }
     hbox.getChildren().addAll(vbox1, vbox2, vbox3);
    
    VBox box = new VBox();
    pane.setStyle("-fx-border-color: red;");
    box.setStyle("-fx-border-color: blue;");
    box.getChildren().addAll(FormulaFrame.ff, hbox);
    Cursor.prompt.setHeight(100);
    box.setPrefSize(100, 100);
    //StackPane.setMargin(box, new Insets(24));
    //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);
View Full Code Here

Examples of javafx.scene.layout.BorderPane

    public void open() {
        this.toolbarView = new ToolbarView();
        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.layout.BorderPane

    this.copperDataProvider = copperDataProvider;
  }

  @Override
  public Node createContent() {
    BorderPane pane = new BorderPane();
    workflowView.setPrefWidth(600);
    pane.setCenter(workflowView);
    Button refreshButton  = new Button("Refresh");
    BorderPane.setMargin(refreshButton, new Insets(5));
    pane.setBottom(refreshButton);
    controller.refresh(copperDataProvider.getWorkflowClassesList(filterController.getFilter().selectedEngine.get().getId()));
   
    controller.selectedItem.addListener(new ChangeListener<WorkflowVersion>() {
      @Override
      public void changed(ObservableValue<? extends WorkflowVersion> observable, WorkflowVersion oldValue, WorkflowVersion newValue) {
View Full Code Here

Examples of javafx.scene.layout.BorderPane

      @Override
      public void run() {
        Stage stage = new Stage();
        stage.setHeight(800);
        stage.setWidth(1024);
        final BorderPane borderPane = new BorderPane();
        final WebView webView = new WebView();
       
        try {
          webView.getEngine().load(
              summeryFile.toURI().toURL().toExternalForm());
        } catch (MalformedURLException e) {
          throw new RuntimeException(e);
        }
        webView.setStyle("-fx-font-smoothing-type: gray;");
        borderPane.setCenter(webView);
        final Button button = new Button("open report folder");
        button.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            try {
              Desktop.getDesktop().open(summeryFile.getParentFile());
            } catch (IOException e) {
              throw new RuntimeException(e);
            }
          }
        });
        HBox buttonbox= new HBox();
        buttonbox.getChildren().add(button);
        borderPane.setBottom(buttonbox);
        stage.setScene(new Scene(borderPane));
        stage.show();
        stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
          @Override
          public void handle(WindowEvent event) {
View Full Code Here

Examples of javafx.scene.layout.BorderPane

  public static Node createProgressIndicator(){
    ProgressIndicator indicator = new ProgressIndicator();
    indicator.setMaxHeight(350);
    indicator.setMaxWidth(350);
   
    BorderPane borderPane = new BorderPane();
    BorderPane.setMargin(indicator, new Insets(5));
    borderPane.setCenter(indicator);
    borderPane.setStyle("-fx-background-color: rgba(230,230,230,0.7);");
    return borderPane;
  }
View Full Code Here

Examples of javafx.scene.layout.BorderPane

                        windowBtns.getChildren().remove(maxButton);
                    }
                }
            });

            root = new BorderPane();

            Scene scene;
            if (stageStyle == StageStyle.DECORATED) {
                scene = new Scene(root);
                // !CHANGE START!
View Full Code Here

Examples of javafx.scene.layout.BorderPane

            contentPanel.getStyleClass().add("more-info-dialog");

            contentPanel.setPrefSize(800, 600);

            if (throwable != null) {
                BorderPane labelPanel = new BorderPane();

                Label label = new Label(getString("exception.dialog.label"));
                labelPanel.setLeft(label);

                contentPanel.getChildren().add(labelPanel);

                StringWriter sw = new StringWriter();
                PrintWriter pw = new PrintWriter(sw);
View Full Code Here

Examples of javafx.scene.layout.BorderPane

    return serverAdress;
  }
 
  public ApplicationContext() {
    mainStackPane = new StackPane();
    mainPane = new BorderPane();
    mainPane.setId("background");//important for css
    mainStackPane.getChildren().add(mainPane);
    messageProvider = new MessageProvider(ResourceBundle.getBundle("de.scoopgmbh.copper.gui.message"));
   
    final Preferences prefs = Preferences.userRoot().node("de.scoopgmbh.coppermonitor");
View Full Code Here

Examples of javafx.scene.layout.BorderPane

        }
      }
    });
   
   
    BorderPane masterBorderPane = new BorderPane();
    masterStackPane.getChildren().add(masterBorderPane);
   
    BorderPane filterBorderPane = new BorderPane();
    final Node leftFilterPart = createLeftFilterPart();
    filterBorderPane.setLeft(leftFilterPart);
    Node filterContent=this.createFilterContent();
    StackPane filterContentStackPane = new StackPane();
    filterBorderPane.setCenter(filterContentStackPane);
    if (filterForm.getController().supportsFiltering()){
      filterContentStackPane.getChildren().add(filterContent);
    }
    Node rightButtons = createRightFilterButtons(filterContent, leftFilterPart, filterContentStackPane);
    BorderPane.setMargin(rightButtons, new Insets(0,3,0,3));
    filterBorderPane.setRight(rightButtons);
    filterBorderPane.setBottom(new Separator(Orientation.HORIZONTAL));

    masterBorderPane.setTop(filterBorderPane);
    masterBorderPane.setCenter(resultForm.createContent());
 
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.