yearLabelContainer.getChildren().addAll(selectedYearLabel); yearLabelContainer.setAlignment(Pos.CENTER_LEFT); yearLabelContainer.setFillHeight(false); yearLabelContainer.setOnMouseClicked((click) -> { if (!yearsListView.isVisible()) {
selectedTimeContainer.setFillHeight(false);
// Add a checkbox, wrapped in an HBox, to the second row final CheckBox checkbox2 = new CheckBox("CB Text 2"); final HBox hbox = new HBox(checkbox2); hbox.setFillHeight(true); // Added this hbox.setAlignment(Pos.CENTER_LEFT);// Changed the alignment to center-left root.add(hbox, 1, 1); //GridPane.setValignment(hbox, VPos.BASELINE); This is unnecessary
public class EventSystemDemo extends Application { @Override public void start(Stage primaryStage) throws Exception { HBox box = new HBox(); box.setSpacing(12); box.setPadding(new Insets(12)); box.setFillHeight(true); box.setAlignment(Pos.CENTER); Flow senderFlow = new Flow(ProducerController.class); box.getChildren().add(senderFlow.start()); Flow receiverFlow = new Flow(ReceiverController.class); box.getChildren().add(receiverFlow.start()); primaryStage.setScene(new Scene(box)); primaryStage.show(); } public static void main(String... args) { launch(args); } }
backWrapper.setFillHeight(false); backWrapper.getChildren().add(back);
toolbar.getChildren().addAll(location, go); toolbar.setFillHeight(true);
HBox.setHgrow(board2, Priority.ALWAYS); HBox root = new HBox(20, board1, board2); root.setFillHeight(true); root.setPadding(new Insets(20)); root.setStyle("-fx-background-color: brown;");
hBox.getChildren().add(chartBox); hBox.getChildren().add(panel); hBox.setFillHeight(true);
private HBox createHorizontalButtonBox() { HBox box = new HBox(5); box.setFillHeight(true); FontAwesome fontAwesome = new FontAwesome(); moveToTarget = new Button("", fontAwesome.create(FontAwesome.Glyph.ANGLE_DOWN)); moveToTargetAll = new Button("", fontAwesome.create(FontAwesome.Glyph.ANGLE_DOUBLE_DOWN)); moveToSource = new Button("", fontAwesome.create(FontAwesome.Glyph.ANGLE_UP)); moveToSourceAll = new Button("", fontAwesome.create(FontAwesome.Glyph.ANGLE_DOUBLE_UP)); updateButtons(); box.getChildren().addAll(moveToTarget, moveToTargetAll, moveToSource, moveToSourceAll); return box; }
yearLabelContainer.getChildren().addAll(selectedYearLabel); yearLabelContainer.setAlignment(Pos.CENTER_LEFT); yearLabelContainer.setFillHeight(false); yearLabelContainer.setOnMouseClicked((click) -> { if (!yearsListView.isVisible()) {
HBox hbox = new HBox(10.0); hbox.setPrefHeight(70); hbox.setFillHeight(true); BackgroundFill bf = new BackgroundFill(Color.BLUEVIOLET, new CornerRadii(1), null); hbox.setBackground(new Background(bf));
selectedTimeContainer.setFillHeight(false);
infoPanel.setFillHeight(true); infoPanel.getStyleClass().add("info-panel"); //$NON-NLS-1$ infoPanel.setCursor(Cursor.HAND);