Package javafx.scene.layout

Examples of javafx.scene.layout.HBox


        assert resultTable != null : "fx:id=\"resultTable\" was not injected: check your FXML file 'MessageResult.fxml'.";
        assert timeColumn != null : "fx:id=\"timeColumn\" was not injected: check your FXML file 'MessageResult.fxml'.";
        assert timeout != null;
        assert borderPane != null;
       
        final HBox createTabelControlls = createTabelControlls(resultTable);
        BorderPane.setMargin(createTabelControlls, new Insets(3));
    borderPane.setBottom(createTabelControlls);

        timeColumn.setCellValueFactory(new Callback<CellDataFeatures<MessageResultModel, Date>, ObservableValue<Date>>() {
        @Override
View Full Code Here


    animationPane.getChildren().add(pane);
   
  }
 
  private Node createLegendEntry(String text, Color color){
    HBox hbox = new HBox();
    hbox.setAlignment(Pos.CENTER_LEFT);
    hbox.setSpacing(3);
    hbox.getChildren().add(new Rectangle(15,15,color));
    hbox.getChildren().add(new Label(text));
    VBox.setMargin(hbox, new Insets(1.5,3,1.5,3));
    return hbox;
  }
View Full Code Here

        });
        VBox vbox= new VBox();
        vbox.setPadding(new Insets(10,10,10,10));
        vbox.setSpacing(10);
       
        HBox hbox= new HBox();
        hbox.setAlignment(Pos.CENTER_RIGHT);
        hbox.getChildren().add(closeButton);
        vbox.getChildren().addAll(scoresText, hbox);
        return vbox;
    }
View Full Code Here

            @Override
            public void handle(ActionEvent t) {
                setVisible(false);
            }
        });                    
        HBox hbox= new HBox();
        hbox.setAlignment(Pos.CENTER_RIGHT);
        hbox.setSpacing(10);
        hbox.getChildren().addAll(submitButton, closeButton);     
       
        VBox vbox= new VBox();
        vbox.setPadding(new Insets(10,10,10,10));
        vbox.setSpacing(10);
        vbox.getChildren().addAll(createGridPane(), hbox);
View Full Code Here

        body.setSpacing(10);       
        if (!Platform.isSupported(ConditionalFeature.SCENE3D)) {
            body.getChildren().add(new Label("Your System does not support 3D graphics."));
        }
        else{                      
            HBox timebox= new HBox();
            timebox.setSpacing(10);
            timebox.getChildren().addAll(new Label("Score:"), timeLabel);
           
            HBox livesbox= new HBox();
            livesbox.setSpacing(10);
            livesbox.getChildren().addAll(liveView, new Label("X"), livesLabel);
           
            body.getChildren().addAll(timebox, livesbox, startButton, highScoresLink);
        }
        return body;
    }
View Full Code Here

                final Stage stage = (Stage) parent.getScene().getWindow();
                stage.close();
            }
        }).prefWidth(100.0).build();

        final HBox hBoxButtonArea = HBoxBuilder.create().alignment(Pos.CENTER).spacing(5.0).padding(new Insets(20)).children(buttonCreate, buttonCancel).build();

        final ColumnConstraints ccWidth20 = ColumnConstraintsBuilder.create().prefWidth(50.0).build();
        final ColumnConstraints ccWidth180 = ColumnConstraintsBuilder.create().prefWidth(150.0).build();

        // labels for team names
View Full Code Here

        topPane.add(movieNameField, 2, 1, 2, 1);
        topPane.add(languageCombo, 2, 2);
        topPane.add(searchButton, 3, 2);
       
        HBox.setHgrow(topPane, Priority.ALWAYS);
        HBox topBox = new HBox();
        topBox.getChildren().add(topPane);
       
       
        table = new TableView<Subtitle>();
        table.setEditable(false);
        table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
        table.setItems(data);
       
        TableColumn idCol = new TableColumn("ID");
        idCol.setCellValueFactory(new PropertyValueFactory<Subtitle, String>("id"));
        TableColumn titleCol = new TableColumn("Title");
        titleCol.setCellValueFactory(new PropertyValueFactory<Subtitle, String>("name"));
        TableColumn uploadedCol = new TableColumn("Uploaded");
        uploadedCol.setCellValueFactory(new PropertyValueFactory<Subtitle, String>("uploadedDate"));
        TableColumn yearReleasedCol = new TableColumn("Year Released");
        yearReleasedCol.setCellValueFactory(new PropertyValueFactory<Subtitle, String>("year"));
        TableColumn kindCol = new TableColumn("Kind");
        kindCol.setCellValueFactory(new PropertyValueFactory<Subtitle, String>("kind"));
        TableColumn seasonCol = new TableColumn("Season");
        seasonCol.setCellValueFactory(new PropertyValueFactory<Subtitle, String>("season"));
        TableColumn episodeCol = new TableColumn("Episode");
        episodeCol.setCellValueFactory(new PropertyValueFactory<Subtitle, String>("episode"));
       
        table.getColumns().addAll(idCol, titleCol, uploadedCol, yearReleasedCol, kindCol, seasonCol, episodeCol);
       
       
        linkField = new TextField("Download Link");
        mountButton = new Button("Mount");
        downloadButton = new Button("Download");
       
        linkField.setEditable(false);
       
        HBox.setHgrow(linkField, Priority.ALWAYS);
        HBox bottomBox = new HBox(5);
        bottomBox.setPadding(new Insets(20, 5, 15, 5));
        bottomBox.getChildren().addAll(linkField, mountButton, downloadButton );
       
        BorderPane root = new BorderPane();
        root.setTop(topBox);
        root.setCenter(table);
        root.setBottom(bottomBox);
View Full Code Here

                setCaptionKey();
                primaryStage.close();
            }
        });
       
        HBox hbBtn = new HBox(10);
        hbBtn.setAlignment(Pos.BOTTOM_RIGHT);
        hbBtn.getChildren().add(cancelButton);
        hbBtn.getChildren().add(okButton);
       
        grid.add(goToNumber, 1, 1, 7, 1);
        grid.add(goToTime, 1, 3, 7, 1);
        grid.add(keyField, 2, 2, 7, 1);
        grid.add(hField, 2, 4);
View Full Code Here

    @Override
    protected void initView() {

        getRootNode().setMinWidth(200);

        final HBox hbox = HBoxBuilder.create().build();
        final Label label = new Label("Node Name :");
        this.nodeName = new Text();
        hbox.getChildren().addAll(label, this.nodeName);

        getRootNode().getChildren().add(hbox);
    }
View Full Code Here

                .build();
    }

    private Node createField(final String string, final String string2) {

        final HBox box = HBoxBuilder.create()
            .styleClass("FormRow")
            .alignment(Pos.CENTER_LEFT)
            .build();

        final Label fieldLabel = LabelBuilder.create()
                .text(string)
                .styleClass("FieldLabel")
                .alignment(Pos.BASELINE_LEFT)
//                .effect(DropShadowBuilder.create()
//
//                        .input(InnerShadowBuilder.create()
//
//                                .color(Color.web("dfdfdf"))
//                                .build())
//
//                        .color(Color.web("#bfbfbf"))
//                        .height(5)
//                        .offsetX(1)
//                        .offsetY(-1)
//                        .radius(1)
//                        .spread(0)
//                        .width(2)
//                        .build())

                .build();
       
        HBox.setHgrow(fieldLabel, Priority.NEVER);
        HBox.setMargin(fieldLabel, new Insets(0, 10, 0, 10));

        final Label unity = LabelBuilder.create()
                .text(string2)
                .styleClass("FieldUnity")
//                .effect(DropShadowBuilder.create()
//
//                        .color(Color.web("#262626"))
//                        .height(5)
//                        .offsetX(1)
//                        .offsetY(-1)
//                        .radius(1)
//                        .spread(0)
//                        .width(2)
//                        .build())
                .build();
       
        HBox.setHgrow(unity, Priority.NEVER);
        HBox.setMargin(unity, new Insets(0, 0, 0, 0));

        final Label fieldValue = LabelBuilder.create()
                .text("...")
                .styleClass("FieldValue")
                .build();
       
        HBox.setHgrow(fieldValue, Priority.ALWAYS);
        HBox.setMargin(fieldValue, new Insets(0, 0, 0, 0));

        box.getChildren().addAll(fieldLabel, unity, fieldValue);

        return box;
    }
View Full Code Here

TOP

Related Classes of javafx.scene.layout.HBox

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.