javafx.scene.control.Separator Java Examples
The following examples show how to use
javafx.scene.control.Separator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CheckListView.java From marathonv5 with Apache License 2.0 | 6 votes |
private void initComponents(boolean selectable) { initVerticalButtonBar(); pane = new ScrollPane(); HBox.setHgrow(pane, Priority.ALWAYS); setCenter(pane); if (selectable) { setRight(verticalButtonBar); verticalButtonBar.setStyle("-fx-padding: 5px"); verticalButtonBar.setDisable(true); } VBox titleBox = new VBox(); Label titleLabel = new Label("Editing CheckList", FXUIUtils.getIcon("newCheckList")); titleLabel.getStyleClass().add("modaldialog-title"); titleBox.getChildren().add(titleLabel); titleBox.getChildren().add(new Separator()); setTop(titleBox); }
Example #2
Source File: FileDownItem.java From oim-fx with MIT License | 6 votes |
private void initComponent() { Separator separator = new Separator(); separator.setOrientation(Orientation.HORIZONTAL); saveAsButton.setText("另存为"); saveAsButton.setPrefSize(80, 20); buttonBox.setAlignment(Pos.BASELINE_RIGHT); buttonBox.setPadding(new Insets(0, 10, 5, 10)); buttonBox.setSpacing(10); buttonBox.getChildren().add(saveAsButton); vBox.getChildren().add(buttonBox); bottomBox.getChildren().add(vBox); bottomBox.getChildren().add(separator); this.setBottom(bottomBox); }
Example #3
Source File: DataManipulationUI.java From SONDY with GNU General Public License v3.0 | 6 votes |
public DataManipulationUI(){ StyleManager.getInstance().addUserAgentStylesheet(PropertySheet.class.getResource("propertysheet.css").toExternalForm()); // Initializing the main grid grid = new GridPane(); grid.setPadding(new Insets(5,5,5,5)); // Adding separators grid.add(new Text("Available datasets"),0,0); grid.add(new Separator(),0,1); grid.add(new Text("Import a dataset"),0,3); grid.add(new Separator(),0,4); grid.add(new Text("Preprocess the selected dataset"),0,6); grid.add(new Separator(),0,7); grid.add(new Text("Filter the selected preprocessed dataset"),0,9); grid.add(new Separator(),0,10); // Initializing specific UIs availableDatasetsUI(); newDatasetProperties = new HashMap<>(); importUI(); preprocessUI(); filterUI(); }
Example #4
Source File: PluginParametersPane.java From constellation with Apache License 2.0 | 6 votes |
@Override public Pane getParamPane(final PluginParametersNode node) { if (node.getChildren().isEmpty()) { return null; } if (currentChild == -1) { titleLabel = new Label(title); titleLabel.setFont(Font.font(Font.getDefault().getFamily(), FontPosture.ITALIC, fontSize)); final Separator separator = new Separator(); separator.setStyle("-fx-background-color:#444444;"); HBox separatorBox = new HBox(separator); HBox.setHgrow(separator, Priority.ALWAYS); HBox.setMargin(separator, new Insets(PADDING, 0, 0, 0)); return new VBox(titleLabel, separatorBox); } final Pane paramPane = super.getParamPane(node); final SimpleDoubleProperty updated = new SimpleDoubleProperty(); updated.bind(Bindings.max(maxParamWidth, paramPane.widthProperty())); maxParamWidth = updated; if (titleLabel != null) { titleLabel.prefWidthProperty().bind(maxParamWidth); } return paramPane; }
Example #5
Source File: DataCollectionUI.java From SONDY with GNU General Public License v3.0 | 6 votes |
public DataCollectionUI(){ grid = new GridPane(); grid.setPadding(new Insets(5, 5, 5, 5)); // Adding separators grid.add(new Text("Available sources"),0,0); grid.add(new Separator(),0,1); grid.add(new Text("Create a source"),0,3); grid.add(new Separator(),0,4); grid.add(new Text("Collect data from the selected source"),0,6); grid.add(new Separator(),0,7); availableSourcesUI(); newSourceUI(); collectDataUI(); }
Example #6
Source File: TakeOfferView.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
private GridPane createInfoPopover() { GridPane infoGridPane = new GridPane(); infoGridPane.setHgap(5); infoGridPane.setVgap(5); infoGridPane.setPadding(new Insets(10, 10, 10, 10)); int i = 0; if (model.isSeller()) addPayInfoEntry(infoGridPane, i++, Res.get("takeOffer.fundsBox.tradeAmount"), model.getTradeAmount()); addPayInfoEntry(infoGridPane, i++, Res.getWithCol("shared.yourSecurityDeposit"), model.getSecurityDepositInfo()); addPayInfoEntry(infoGridPane, i++, Res.get("takeOffer.fundsBox.offerFee"), model.getTradeFee()); addPayInfoEntry(infoGridPane, i++, Res.get("takeOffer.fundsBox.networkFee"), model.getTxFee()); Separator separator = new Separator(); separator.setOrientation(Orientation.HORIZONTAL); separator.getStyleClass().add("offer-separator"); GridPane.setConstraints(separator, 1, i++); infoGridPane.getChildren().add(separator); addPayInfoEntry(infoGridPane, i, Res.getWithCol("shared.total"), model.getTotalToPayInfo()); return infoGridPane; }
Example #7
Source File: MutableOfferView.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
private GridPane createInfoPopover() { GridPane infoGridPane = new GridPane(); infoGridPane.setHgap(5); infoGridPane.setVgap(5); infoGridPane.setPadding(new Insets(10, 10, 10, 10)); int i = 0; if (model.isSellOffer()) addPayInfoEntry(infoGridPane, i++, Res.getWithCol("shared.tradeAmount"), model.tradeAmount.get()); addPayInfoEntry(infoGridPane, i++, Res.getWithCol("shared.yourSecurityDeposit"), model.getSecurityDepositInfo()); addPayInfoEntry(infoGridPane, i++, Res.get("createOffer.fundsBox.offerFee"), model.getTradeFee()); addPayInfoEntry(infoGridPane, i++, Res.get("createOffer.fundsBox.networkFee"), model.getTxFee()); Separator separator = new Separator(); separator.setOrientation(Orientation.HORIZONTAL); separator.getStyleClass().add("offer-separator"); GridPane.setConstraints(separator, 1, i++); infoGridPane.getChildren().add(separator); addPayInfoEntry(infoGridPane, i, Res.getWithCol("shared.total"), model.getTotalToPayInfo()); return infoGridPane; }
Example #8
Source File: ToolbarHandler.java From phoebus with Eclipse Public License 1.0 | 6 votes |
/** Add a custom tool bar item * @param icon Icon {@link Image} * @param tool_tip Tool tip text * @return {@link Button} */ public Button addItem(final ImageView icon, final String tool_tip) { if (!have_custom_items) { toolbar.getItems().add(new Separator()); have_custom_items = true; } final Button item = new Button(); item.setGraphic(icon); item.setTooltip(new Tooltip(tool_tip)); // Buttons should size based on the icon, but // without explicit size, they sometimes start out zero-sized. // setMinSize tends to have icon end up in top-left corner. // setPrefSize tends to show just the icon, no button. // minSize with visible button is better than no button. // Icon gets positioned once the button is pressed. item.setMinSize(BUTTON_WIDTH, BUTTON_HEIGHT); toolbar.getItems().add(item); return item; }
Example #9
Source File: FormulaPaneDemo.java From phoebus with Eclipse Public License 1.0 | 6 votes |
@Override public void start(final Stage stage) throws Exception { final GridPane layout = new GridPane(); final List<InputItem> inputs = List.of( new InputItem("fred", "x"), new InputItem("freddy", "y"), new InputItem("jane", "z"), new InputItem("janet", "jj")); final FormulaPane form_pane = new FormulaPane("2*x + y", inputs); layout.add(form_pane, 0, 0, 2, 1); layout.add(new Separator(), 0, 1, 2, 1); layout.add(new Label("Formula OK: "), 0, 2); final Label status = new Label(); layout.add(status, 1, 2); status.textProperty().bind(form_pane.okProperty().asString()); stage.setScene(new Scene(layout, 700, 400)); stage.show(); }
Example #10
Source File: AlertWithToggle.java From phoebus with Eclipse Public License 1.0 | 6 votes |
/** @param type {@link AlertType} * @param header Header text * @param content Content text * @param buttons {@link ButtonType}s */ public AlertWithToggle(final AlertType type, final String header, final String content, final ButtonType... buttons) { super(type, "", buttons); setHeaderText(header); setResizable(true); if (content.isEmpty()) getDialogPane().setContent(hide); else { final Label content_label = new Label(content); final VBox layout = new VBox(5, content_label, new Separator(), hide); getDialogPane().setContent(layout); } }
Example #11
Source File: NewTradeProtocolLaunchWindow.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
private void createContent() { HBox content = new HBox(); content.setMinWidth(680); content.setAlignment(Pos.TOP_LEFT); content.setSpacing(40); VBox accountSigning = getFeatureBox(Res.get("popup.news.launch.accountSigning.headline"), Res.get("popup.news.launch.accountSigning.description"), "image-account-signing-screenshot", "https://docs.bisq.network/payment-methods#account-signing"); VBox newTradeProtocol = getFeatureBox(Res.get("popup.news.launch.ntp.headline"), Res.get("popup.news.launch.ntp.description"), "image-new-trade-protocol-screenshot", "https://docs.bisq.network/trading-rules"); content.getChildren().addAll(accountSigning, new Separator(Orientation.VERTICAL), newTradeProtocol); GridPane.setMargin(content, new Insets(10, 0, 0, 0)); GridPane.setRowIndex(content, ++rowIndex); GridPane.setColumnSpan(content, 2); GridPane.setHgrow(content, Priority.ALWAYS); gridPane.getChildren().add(content); }
Example #12
Source File: NewsView.java From bisq with GNU Affero General Public License v3.0 | 6 votes |
@Override protected void initialize() { root.setSpacing(20); AnchorPane bisqDAOPane = createBisqDAOContent(); HBox.setHgrow(bisqDAOPane, Priority.SOMETIMES); Separator separator = new Separator(); separator.setOrientation(Orientation.VERTICAL); HBox.setHgrow(separator, Priority.NEVER); GridPane bisqDAOOnTestnetPane = createBisqDAOOnTestnetContent(); HBox.setHgrow(bisqDAOOnTestnetPane, Priority.SOMETIMES); Pane spacer = new Pane(); HBox.setHgrow(spacer, Priority.ALWAYS); root.getChildren().addAll(bisqDAOPane, separator, bisqDAOOnTestnetPane, spacer); }
Example #13
Source File: ControlBarGUIPluginView.java From AILibs with GNU Affero General Public License v3.0 | 6 votes |
public ControlBarGUIPluginView(final ControlBarGUIPluginModel model) { super(model, new ToolBar()); Platform.runLater(() -> { ToolBar topButtonToolBar = this.getNode(); this.startButton = new Button("Play"); this.startButton.setOnMouseClicked(event -> this.handleStartButtonClick()); topButtonToolBar.getItems().add(this.startButton); Button pauseButton = new Button("Pause"); pauseButton.setOnMouseClicked(event -> this.handlePauseButtonClick()); topButtonToolBar.getItems().add(pauseButton); Button resetButton = new Button("Reset"); resetButton.setOnMouseClicked(event -> this.handleResetButtonClick()); topButtonToolBar.getItems().add(resetButton); topButtonToolBar.getItems().add(new Separator()); }); }
Example #14
Source File: HistoryListPopup.java From arma-dialog-creator with MIT License | 6 votes |
public HistoryListPopup(@Nullable String popupTitle, @NotNull HistoryListProvider provider) { super(ArmaDialogCreator.getPrimaryStage(), new VBox(5), popupTitle); this.provider = provider; myRootElement.setPadding(new Insets(10)); final ScrollPane scrollPane = new ScrollPane(stackPaneWrapper); VBox.setVgrow(scrollPane, Priority.ALWAYS); scrollPane.setFitToHeight(true); scrollPane.setFitToWidth(true); scrollPane.setStyle("-fx-background-color:transparent"); myRootElement.getChildren().addAll(scrollPane, new Separator(Orientation.HORIZONTAL), getBoundResponseFooter(false, true, false)); gridPaneContent.setVgap(15); gridPaneContent.setHgap(5); ColumnConstraints constraints = new ColumnConstraints(-1, -1, Double.MAX_VALUE, Priority.ALWAYS, HPos.CENTER, true); gridPaneContent.getColumnConstraints().addAll(constraints, constraints); myStage.setMinWidth(320); myStage.setMinHeight(320); myStage.setWidth(480); stackPaneWrapper.setPrefHeight(320); fillContent(); }
Example #15
Source File: FlyoutDemo.java From mars-sim with GNU General Public License v3.0 | 6 votes |
@Override public void start(Stage primaryStage) throws Exception { BorderPane pane = new BorderPane(); ToolBar toolBar = new ToolBar(); Label fileLabel = new Label("File"); flyout = createFlyout(); // Could be TOP, LEFT, RIGHT too! flyout.setFlyoutSide(Flyout.Side.BOTTOM); toolBar.getItems().addAll( fileLabel, new Separator(), flyout ); pane.setTop(toolBar); Scene scene = new Scene(pane, 600, 200); primaryStage.setScene(scene); primaryStage.show(); }
Example #16
Source File: ToolboxView.java From metastone with GNU General Public License v2.0 | 6 votes |
public ToolboxView() { FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/fxml/ToolboxView.fxml")); fxmlLoader.setRoot(this); fxmlLoader.setController(this); try { fxmlLoader.load(); } catch (IOException exception) { throw new RuntimeException(exception); } playerPanel = new PlayerPanel(); getItems().add(playerPanel); getItems().add(new Separator()); cardPanel = new CardPanel(); getItems().add(cardPanel); getItems().add(new Separator()); minionPanel = new MinionPanel(); getItems().add(minionPanel); }
Example #17
Source File: ConvertingImageSubscriberDialog.java From arma-dialog-creator with MIT License | 5 votes |
public ConversionFailPopup(@NotNull String message) { super(ArmaDialogCreator.getPrimaryStage(), new VBox(5), null); ResourceBundle bundle = Lang.ApplicationBundle(); setTitle(bundle.getString("Popups.ImageConversion.convert_error_popup_title")); myStage.initModality(Modality.APPLICATION_MODAL); myRootElement.setPadding(new Insets(10)); myRootElement.getChildren().addAll(new HBox(10, new ImageView("/com/armadialogcreator/img/icons/error64.png"), new Label(message))); myStage.setMinWidth(340d); myRootElement.getChildren().addAll(new Separator(Orientation.HORIZONTAL), getBoundResponseFooter(false, true, false)); }
Example #18
Source File: PollenDashboard.java From medusademo with Apache License 2.0 | 5 votes |
@Override public void init() { GaugeBuilder builder = GaugeBuilder.create() .skinType(SkinType.INDICATOR) .prefWidth(150) .animated(true) .decimals(0) .sectionsVisible(true) .sections(new Section(0, 33, Color.rgb(34, 180, 11)), new Section(33, 66, Color.rgb(255, 146, 0)), new Section(66, 100, Color.rgb(255, 0, 39))); ragweed = builder.build(); birch = builder.build(); grass = builder.build(); olive = builder.build(); combined = builder.build(); HBox ragweedBox = getHBox("RAGWEED", ragweed); HBox birchBox = getHBox("BIRCH", birch); HBox grassBox = getHBox("GRASS", grass); HBox oliveBox = getHBox("OLIVE", olive); HBox combinedBox = getHBox("COMBINED", combined); pane = new VBox(ragweedBox, new Separator(Orientation.HORIZONTAL), birchBox, new Separator(Orientation.HORIZONTAL), grassBox, new Separator(Orientation.HORIZONTAL), oliveBox, new Separator(Orientation.HORIZONTAL), combinedBox); pane.setPadding(new Insets(20, 20, 0, 20)); pane.setSpacing(10); pane.setBackground(new Background(new BackgroundFill(Color.rgb(242, 242, 242), CornerRadii.EMPTY, Insets.EMPTY))); }
Example #19
Source File: CSeparator.java From Open-Lowcode with Eclipse Public License 2.0 | 5 votes |
@Override public Node getNode( PageActionManager actionmanager, CPageData inputdata, Window parentwindow, TabPane[] parenttabpanes, CollapsibleNode nodetocollapsewhenactiontriggered) { Separator separator = new Separator(); if (!horizontal) separator.setOrientation(Orientation.VERTICAL); return separator; }
Example #20
Source File: RefImplToolBar.java From FXMaps with GNU Affero General Public License v3.0 | 5 votes |
/** * Create the {@link ToolBar} for controlling map parameters. */ public void initializeToolBar() { getItems().addAll( directionsBtn = new ToggleButton("Directions"), new Separator(), mapFlyout = new Flyout(mapChooser = new ToggleButton("Create / Select Map"), getMapControl()), new Separator(), routeFlyout = new Flyout(routeChooser = new ToggleButton("Create / Select Route"), getRouteControl()) ); }
Example #21
Source File: ActionUtils.java From markdown-writer-fx with BSD 2-Clause "Simplified" License | 5 votes |
public static Node[] createToolBarButtons(Action... actions) { Node[] buttons = new Node[actions.length]; for (int i = 0; i < actions.length; i++) { buttons[i] = (actions[i] != null) ? createToolBarButton(actions[i]) : new Separator(); } return buttons; }
Example #22
Source File: AbstractProtocolView.java From trex-stateless-gui with Apache License 2.0 | 5 votes |
/** * * @param top * @param left * @param width */ protected void addSeparator(double top, double left, double width) { Separator separator = new Separator(Orientation.HORIZONTAL); separator.setPrefWidth(width); separator.setPrefHeight(1); container.getChildren().add(separator); container.setTopAnchor(separator, top); container.setLeftAnchor(separator, left); }
Example #23
Source File: ConsolePane.java From xframium-java with GNU General Public License v3.0 | 5 votes |
private BorderPane getStatusBar () { Separator[] div = new Separator[6]; for (int i = 0; i < div.length; i++) { div[i] = new Separator (); div[i].setOrientation (Orientation.VERTICAL); } HBox leftBox = getHBox (new Insets (2, GAP, 2, 3), Pos.CENTER_LEFT); leftBox.getChildren ().addAll (div[0], fieldLocation, div[1], insertMode, div[2]); HBox centerBox = getHBox (new Insets (2, GAP, 2, GAP), Pos.CENTER); centerBox.getChildren ().add (status); HBox rightBox = getHBox (new Insets (2, 0, 2, GAP), Pos.CENTER_RIGHT); rightBox.getChildren ().addAll (div[3], fieldType, div[4], cursorLocation, div[5]); setStatusFont (); BorderPane statusPane = new BorderPane (); statusPane.setLeft (leftBox); statusPane.setCenter (centerBox); statusPane.setRight (rightBox); return statusPane; }
Example #24
Source File: TradeSubView.java From bisq with GNU Affero General Public License v3.0 | 5 votes |
void addLineSeparatorToGridPane() { final Separator separator = new Separator(Orientation.VERTICAL); separator.setMinHeight(22); GridPane.setMargin(separator, new Insets(0, 0, 0, 13)); GridPane.setHalignment(separator, HPos.LEFT); GridPane.setRowIndex(separator, leftGridPaneRowIndex++); leftGridPane.getChildren().add(separator); }
Example #25
Source File: InfluenceAnalysisUI.java From SONDY with GNU General Public License v3.0 | 5 votes |
public InfluenceAnalysisUI(){ // Initializing the main grid grid = new GridPane(); grid.setPadding(new Insets(5, 5, 5, 5)); // Adding separators grid.add(new Text("Available methods"),0,0); grid.add(new Separator(),0,1); grid.add(new Text("Network visualization"),0,3); grid.add(new Separator(),0,4); availabeMethodsUI(); rankAnalysisUI(); }
Example #26
Source File: Zoomer.java From chart-fx with Apache License 2.0 | 5 votes |
public HBox getZoomInteractorBar() { final Separator separator = new Separator(); separator.setOrientation(Orientation.VERTICAL); final HBox buttonBar = new HBox(); buttonBar.setPadding(new Insets(1, 1, 1, 1)); final Button zoomOut = new Button(null, new Glyph(FONT_AWESOME, "\uf0b2").size(FONT_SIZE)); zoomOut.setPadding(new Insets(3, 3, 3, 3)); zoomOut.setTooltip(new Tooltip("zooms to origin and enables auto-ranging")); final Button zoomModeXY = new Button(null, new Glyph(FONT_AWESOME, "\uf047").size(FONT_SIZE)); zoomModeXY.setPadding(new Insets(3, 3, 3, 3)); zoomModeXY.setTooltip(new Tooltip("set zoom-mode to X & Y range (N.B. disables auto-ranging)")); final Button zoomModeX = new Button(null, new Glyph(FONT_AWESOME, "\uf07e").size(FONT_SIZE)); zoomModeX.setPadding(new Insets(3, 3, 3, 3)); zoomModeX.setTooltip(new Tooltip("set zoom-mode to X range (N.B. disables auto-ranging)")); final Button zoomModeY = new Button(null, new Glyph(FONT_AWESOME, "\uf07d").size(FONT_SIZE)); zoomModeY.setPadding(new Insets(3, 3, 3, 3)); zoomModeY.setTooltip(new Tooltip("set zoom-mode to Y range (N.B. disables auto-ranging)")); zoomOut.setOnAction(evt -> { zoomOrigin(); for (final Axis axis : getChart().getAxes()) { axis.setAutoRanging(true); } }); zoomModeXY.setOnAction(evt -> setAxisMode(AxisMode.XY)); zoomModeX.setOnAction(evt -> setAxisMode(AxisMode.X)); zoomModeY.setOnAction(evt -> setAxisMode(AxisMode.Y)); buttonBar.getChildren().addAll(separator, zoomOut, zoomModeXY, zoomModeX, zoomModeY); return buttonBar; }
Example #27
Source File: TableViewer.java From chart-fx with Apache License 2.0 | 5 votes |
/** * Helper function to initialize the UI elements for the Interactor toolbar. * * @return HBox node with the toolbar elements */ protected HBox getInteractorBar() { final Separator separator = new Separator(); separator.setOrientation(Orientation.VERTICAL); final HBox buttonBar = new HBox(); buttonBar.setPadding(new Insets(1, 1, 1, 1)); final Button switchTableView = new Button(null, tableView); switchTableView.setPadding(new Insets(3, 3, 3, 3)); switchTableView.setTooltip(new Tooltip("switches between graph and table view")); final Button copyToClipBoard = new Button(null, clipBoardIcon); copyToClipBoard.setPadding(new Insets(3, 3, 3, 3)); copyToClipBoard.setTooltip(new Tooltip("copy selected content top system clipboard")); copyToClipBoard.setOnAction(e -> this.copySelectedToClipboard()); final Button saveTableView = new Button(null, saveIcon); saveTableView.setPadding(new Insets(3, 3, 3, 3)); saveTableView.setTooltip(new Tooltip("store actively shown content as .csv file")); saveTableView.setOnAction(e -> this.exportGridToCSV()); switchTableView.setOnAction(evt -> { switchTableView.setGraphic(table.isVisible() ? tableView : graphView); table.setVisible(!table.isVisible()); getChart().getPlotForeground().setMouseTransparent(!table.isVisible()); table.setMouseTransparent(!table.isVisible()); dsModel.datasetsChanged(null); }); buttonBar.getChildren().addAll(separator, switchTableView, copyToClipBoard, saveTableView); return buttonBar; }
Example #28
Source File: LogUI.java From SONDY with GNU General Public License v3.0 | 5 votes |
public LogUI(){ // Initializing the main grid logGrid = new GridPane(); logGrid.setPadding(new Insets(5, 5, 5, 5)); // Adding separators logGrid.add(new Text("Log"),0,0); logGrid.add(new Separator(),0,1); // App status monitoring memoryLabel = new Label(); UIUtils.setSize(memoryLabel, Main.columnWidthLEFT, 24); progressBar = new ProgressBar(0); UIUtils.setSize(progressBar, Main.columnWidthRIGHT, 12); HBox appStatusBox = new HBox(5); appStatusBox.setAlignment(Pos.CENTER); appStatusBox.getChildren().addAll(memoryLabel,progressBar); logGrid.add(appStatusBox,0,2); // Creating the log table logTable = new TableView<>(); UIUtils.setSize(logTable,Main.windowWidth-10,150); TableColumn logTimeColumn = new TableColumn("Time"); logTimeColumn.setMinWidth(90); logTimeColumn.setMaxWidth(90); TableColumn logDetailsColumn = new TableColumn("Log"); logDetailsColumn.setMinWidth(Main.windowWidth-85); logTimeColumn.setCellValueFactory(new PropertyValueFactory<>("time")); logDetailsColumn.setCellValueFactory(new PropertyValueFactory<>("info")); logTable.getColumns().addAll(logTimeColumn,logDetailsColumn); logGrid.add(logTable,0,3); }
Example #29
Source File: PreferencesView.java From bisq with GNU Affero General Public License v3.0 | 5 votes |
private void initializeSeparator() { final Separator separator = new Separator(Orientation.VERTICAL); separator.setPadding(new Insets(0, 10, 0, 10)); GridPane.setColumnIndex(separator, 1); GridPane.setHalignment(separator, HPos.CENTER); GridPane.setRowIndex(separator, 0); GridPane.setRowSpan(separator, GridPane.REMAINING); root.getChildren().add(separator); }
Example #30
Source File: ArrayValueEditor.java From arma-dialog-creator with MIT License | 5 votes |
private void addSpaceFiller() { Label lbl = new Label("{}"); lbl.setFont(Font.font(15)); editorsPane.getChildren().add(lbl); Separator sep = new Separator(Orientation.HORIZONTAL); sep.setOpaqueInsets(new Insets(lbl.getHeight() / 2)); sep.setPrefWidth(numEditorsPerRow * tfPrefWidth - lbl.getWidth() - 10); editorsPane.getChildren().add(sep); }