Package javafx.scene.control

Examples of javafx.scene.control.Button.prefWidthProperty()


    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


    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.