Newer
Older
package hellofx;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.CornerRadii;
import javafx.scene.paint.Color;
public class Controller {
// @FXML
// private Button but1;
public void initialize() {
// String javaVersion = System.getProperty("java.version");
// String javafxVersion = System.getProperty("javafx.version");
// label.setText("Hello, JavaFX " + javafxVersion + "\nRunning on Java " + javaVersion + ".");
output.setText("No Input");
output.setBackground(new Background(new BackgroundFill(Color.WHEAT, CornerRadii.EMPTY, Insets.EMPTY)));
// output.setLayoutX(10.);
// output.setLayoutY(10.);