Java Code Examples for javafx.scene.control.Button.setMinHeight()

The following are Jave code examples for showing how to use setMinHeight() of the javafx.scene.control.Button class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Goliath-Overclocking-Utility-FX   File: FanProfilePane.java   Source Code and License Vote up 5 votes
public FanProfilePane()
{
    super();
    super.setPrefHeight(AppTabPane.CONTENT_HEIGHT);
    super.setPrefWidth(AppTabPane.CONTENT_WIDTH);
    
    editPane = new FanProfileEditPane(InstanceProvider.getFanProfiles().get(0));
    
    leftPane = new VBox();
    
    profileList = new ListView<>();
    profileList.setEditable(false);
    profileList.setPrefWidth(125);
    profileList.setItems(FXCollections.observableArrayList(InstanceProvider.getFanProfiles()));
    profileList.getSelectionModel().selectFirst();
    profileList.setOnMouseClicked(new ListHandler());
    profileList.setContextMenu(new ProfileContextMenu(profileList));
    
    profileList.setPlaceholder(new Label("No Profiles"));
    
    applyButton = new Button("Apply");
    applyButton.setPrefWidth(125);
    applyButton.setMinHeight(47);
    applyButton.setOnMouseClicked(new ApplyButtonHandler());
    
    leftPane.getChildren().addAll(profileList, applyButton);
    
    infoPane = new FanOptionPane();
    
    super.setTop(infoPane);
    super.setLeft(leftPane);
    super.setCenter(editPane);
}
 
Example 2
Project: cassandra-client   File: TableButtons.java   Source Code and License Vote up 5 votes
private Button buildButton(String text) {
    Button button = new Button(text);
    button.setMnemonicParsing(false);
    button.setMinWidth(USE_PREF_SIZE);
    button.setMaxWidth(USE_PREF_SIZE);
    button.setPrefWidth(30);

    button.setMinHeight(USE_PREF_SIZE);
    button.setMaxHeight(USE_PREF_SIZE);
    button.setPrefHeight(25);
    return button;
}
 
Example 3
Project: voogasalad-ltub   File: LevelManager.java   Source Code and License Vote up 5 votes
private Button createButton() {
	Button starting = new Button("Start A Game of Random Level");				
	starting.setLayoutX(500);
	starting.setLayoutY(600);
	starting.setId("starting");
	starting.setMinWidth(100);
	starting.setMinHeight(100);
	return starting;
}