package app; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.geometry.Insets; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.TextField; import javafx.scene.layout.GridPane; import javafx.stage.Stage; public class Main extends Application { static String foo; @Override public void start(Stage primaryStage) throws Exception{ Parent root = FXMLLoader.load(getClass().getResource("layout.fxml")); Scene scene = new Scene(root, 300, 275); primaryStage.setTitle("mucc"); primaryStage.setScene(scene); primaryStage.show(); } public static void main(String[] args) { launch(args); } }