Package javafx.scene.control

Examples of javafx.scene.control.SplitPane


    pojoBox.getChildren().addAll(lbl, new Label("Name:"), pojoNameTF,
        pojoNameBtn, new Separator(),
        updateListView(langBox, "Language"),
        updateListView(hobbyBox, "Hobby"), new Separator(),
        new Label("POJO Dump:"), pojoTA);
    SplitPane pojoSplit = new SplitPane();
    pojoSplit.getItems().addAll(beanPane, pojoBox);
    VBox beanBox = new VBox(10);
    beanBox.getChildren().addAll(toolBar, pojoSplit);
    return beanBox;
  }
View Full Code Here


        EventStreams.valuesOf(textArea.textProperty())
                .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

      Control createShowFormButton = form.createShowFormButton();
      createShowFormButton.setDisable(!form.isEnabled());
      createShowFormButton.setTooltip(form.getTooltip());
     
      if (!form.isEnabled()){/*workaround disabled button must be wrapped in split pane to show tooltip https://javafx-jira.kenai.com/browse/RT-28850*/
        SplitPane wrapper = new SplitPane();
        wrapper.getItems().add(createShowFormButton);
        createShowFormButton = wrapper;
        wrapper.setTooltip(form.getTooltip());
      }
     
      result.add(createShowFormButton);
    }
    return result;
View Full Code Here

//            public void changed(ObservableValue<? extends Packet> ov, Packet old_val, Packet new_val) {
//                packetDisplay.updateData(new_val);
//            }
//
//        });
        SplitPane splitPane = new SplitPane();
        splitPane.setOrientation(Orientation.VERTICAL);
        splitPane.getItems().addAll(packetsTableView, packetDisplay);
        BorderPane borderPane = (BorderPane) scene.getRoot();
        borderPane.setCenter(splitPane);
        borderPane.setTop(toolBar);
    }
View Full Code Here

    pojoBox.getChildren().addAll(lbl, new Label("Name:"), pojoNameTF,
        pojoNameBtn, new Separator(),
        updateListView(langBox, "Language"),
        updateListView(hobbyBox, "Hobby"), new Separator(),
        new Label("POJO Dump:"), pojoTA);
    SplitPane pojoSplit = new SplitPane();
    VBox.setVgrow(pojoSplit, Priority.ALWAYS);
    pojoSplit.getItems().addAll(beanPane, pojoBox);
    VBox beanBox = new VBox(10);
    beanBox.getChildren().addAll(toolBar, pojoSplit);
    return beanBox;
  }
View Full Code Here

    @Override public void start(Stage stage) {
        HBox hbox = new HBox();
        hbox.setSpacing(10);
        hbox.setPadding(new Insets(20));

        SplitPane splitPane1 = new SplitPane();
        splitPane1.setOrientation(Orientation.VERTICAL);
        splitPane1.setPrefSize(200, 200);
        final Label l1 = new Label("Top Label");
        final Label r1 = new Label("Bottom Label");
        splitPane1.getItems().addAll(l1, r1);

        SplitPane splitPane2 = new SplitPane();
        splitPane2.setOrientation(Orientation.HORIZONTAL);
        splitPane2.setPrefSize(400, 200);
        final Label c2 = new Label("Center Label");
        final Label r2 = new Label("Right Label");
        splitPane2.getItems().addAll(splitPane1, c2, r2);
        hbox.getChildren().add(splitPane2);

        Scene scene = new Scene(hbox);
        stage.setScene(scene);
        AquaFx.style();
View Full Code Here

    memberAttrList = FXCollections.observableArrayList();
    attributeTableView = TableUtil.buildTableMemberAttributes(memberAttrList);
    attributeTableView.setPlaceholder(new Text("Select a JIT-compiled class member to view compilation attributes."));

    SplitPane spMethodInfo = new SplitPane();
    spMethodInfo.setOrientation(Orientation.VERTICAL);

    classMemberList = new ClassMemberList(this, getConfig());

    spMethodInfo.getItems().add(classMemberList);
    spMethodInfo.getItems().add(attributeTableView);

    classMemberList.prefHeightProperty().bind(scene.heightProperty());
    attributeTableView.prefHeightProperty().bind(scene.heightProperty());

    classTree = new ClassTree(this, getConfig());
    classTree.prefWidthProperty().bind(scene.widthProperty());

    SplitPane spMain = new SplitPane();
    spMain.setOrientation(Orientation.VERTICAL);

    SplitPane spCentre = new SplitPane();
    spCentre.getItems().add(classTree);
    spCentre.getItems().add(spMethodInfo);
    spCentre.setDividerPositions(0.33, 0.67);

    textAreaLog = new TextArea();
    textAreaLog.setStyle("-fx-font-family:monospace;-fx-font-size:12px");
    textAreaLog.setPrefHeight(textAreaHeight);
View Full Code Here

    hBoxToolBarClass.getChildren().add(classSearch);

    hBoxToolBarClass.getChildren().add(lblMember);
    hBoxToolBarClass.getChildren().add(comboMember);

    splitViewer = new SplitPane();
    splitViewer.setOrientation(Orientation.HORIZONTAL);

    Scene scene = new Scene(vBox, JITWatchUI.WINDOW_WIDTH, JITWatchUI.WINDOW_HEIGHT);
    navigationStack = new TriViewNavigationStack(this, scene);
View Full Code Here

    sandbox = new Sandbox(parser, this, this);

    setTitle("JITWatch Sandbox");

    splitEditorPanes = new SplitPane();
    splitEditorPanes.setOrientation(Orientation.HORIZONTAL);

    SplitPane splitVertical = new SplitPane();
    splitVertical.setOrientation(Orientation.VERTICAL);

    taLog = new TextArea();

    String style = "-fx-font-family:monospace; -fx-font-size:12px; -fx-background-color:white;";

    taLog.setStyle(style);

    Button btnNewEditor = new Button("New Editor");
    btnNewEditor.setOnAction(new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        addEditor(null);
      }
    });

    btnSandboxConfig = new Button("Configure Sandbox");
    btnSandboxConfig.setOnAction(new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        sandboxConfigStage = new SandboxConfigStage(SandboxStage.this, parser.getConfig());

        StageManager.addAndShow(sandboxConfigStage);

        btnSandboxConfig.setDisable(true);
      }
    });

    Button btnResetSandbox = new Button("Reset Sandbox");
    btnResetSandbox.setOnAction(new EventHandler<ActionEvent>()
    {
      @Override
      public void handle(ActionEvent e)
      {
        Response resp = Dialogs.showYesNoDialog(SandboxStage.this, "Reset Sandbox?",
            "Delete all modified Sandbox sources and classes?");

        if (resp == Response.YES)
        {
          initialiseLog();
          sandbox.reset();
          loadDefaultEditors();
        }
      }
    });

    comboBoxVMLanguage.valueProperty().addListener(new ChangeListener<String>()
    {
      @Override
      public void changed(ObservableValue<? extends String> ov, String oldVal, String newVal)
      {
        if (newVal != null)
        {
          log("Changed language to " + newVal);
        }
      }
    });

    HBox hBoxTools = new HBox();

    hBoxTools.setSpacing(10);
    hBoxTools.setPadding(new Insets(10));

    hBoxTools.getChildren().add(btnNewEditor);
    hBoxTools.getChildren().add(btnSandboxConfig);
    hBoxTools.getChildren().add(btnResetSandbox);
    hBoxTools.getChildren().add(comboBoxVMLanguage);

    splitVertical.getItems().add(splitEditorPanes);
    splitVertical.getItems().add(taLog);

    splitVertical.setDividerPositions(0.75, 0.25);

    VBox vBoxMain = new VBox();
    vBoxMain.getChildren().add(hBoxTools);
    vBoxMain.getChildren().add(splitVertical);
View Full Code Here

            myScene = new Scene(fullUIStack);
            jfxPanel.setScene(myScene);
            groupPane = new GroupPane(controller);
            centralStack = new StackPane(groupPane)//this is passed into controller
            fullUIStack.getChildren().add(borderPane);
            splitPane = new SplitPane();
            borderPane.setCenter(splitPane);
            borderPane.setTop(Toolbar.getDefault());
            borderPane.setBottom(new StatusBar(controller));

            metaDataTable = new MetaDataPane(controller);
View Full Code Here

TOP

Related Classes of javafx.scene.control.SplitPane

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.