Package javafx.scene.layout

Examples of javafx.scene.layout.HBox.widthProperty()


    protected void draw() {
      // skin approach uses more resources to manage
      final HBox textView = new HBox(TEXT_SPACING);
      textView.setCache(true);
      textView.setCacheHint(CacheHint.SPEED);
      textView.widthProperty().addListener(new ChangeListener<Number>() {
      @Override
      public void changed(ObservableValue<? extends Number> observable,
          Number oldValue, Number newValue) {
        final Bounds textViewBounds = textView.getBoundsInLocal();
        mainRec.setX(textViewBounds.getMinX());
View Full Code Here


    HBox hBoxTextAreas = new HBox();

    hBoxTextAreas.getChildren().add(taLineNumbers);
    hBoxTextAreas.getChildren().add(taSource);

    taSource.prefWidthProperty().bind(hBoxTextAreas.widthProperty());

    getChildren().add(hBoxTitle);
    getChildren().add(hBoxTextAreas);

    hBoxTitle.prefWidthProperty().bind(widthProperty());
View Full Code Here

    hboxCompiler.setSpacing(10);

    hboxCompiler.getChildren().add(tfCompilerPath);
    hboxCompiler.getChildren().add(btnChooseCompilerPath);
   
    tfCompilerPath.prefWidthProperty().bind(hboxCompiler.widthProperty().multiply(0.8));
    btnChooseCompilerPath.prefWidthProperty().bind(hboxCompiler.widthProperty().multiply(0.2));

    vbox.getChildren().add(new Label("Compiler Path"));
    vbox.getChildren().add(hboxCompiler);
   
View Full Code Here

    hboxCompiler.getChildren().add(tfCompilerPath);
    hboxCompiler.getChildren().add(btnChooseCompilerPath);
   
    tfCompilerPath.prefWidthProperty().bind(hboxCompiler.widthProperty().multiply(0.8));
    btnChooseCompilerPath.prefWidthProperty().bind(hboxCompiler.widthProperty().multiply(0.2));

    vbox.getChildren().add(new Label("Compiler Path"));
    vbox.getChildren().add(hboxCompiler);
   
    return vbox;
View Full Code Here

    HBox hboxRuntime = new HBox();
    hboxRuntime.setSpacing(10);
    hboxRuntime.getChildren().add(tfRuntimePath);
    hboxRuntime.getChildren().add(btnChooseRuntimePath);
   
    tfRuntimePath.prefWidthProperty().bind(hboxRuntime.widthProperty().multiply(0.8));
    btnChooseRuntimePath.prefWidthProperty().bind(hboxRuntime.widthProperty().multiply(0.2));

    vbox.getChildren().add(new Label("Runtime Path"));
    vbox.getChildren().add(hboxRuntime);
   
View Full Code Here

    hboxRuntime.setSpacing(10);
    hboxRuntime.getChildren().add(tfRuntimePath);
    hboxRuntime.getChildren().add(btnChooseRuntimePath);
   
    tfRuntimePath.prefWidthProperty().bind(hboxRuntime.widthProperty().multiply(0.8));
    btnChooseRuntimePath.prefWidthProperty().bind(hboxRuntime.widthProperty().multiply(0.2));

    vbox.getChildren().add(new Label("Runtime Path"));
    vbox.getChildren().add(hboxRuntime);
   
    return vbox;
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.