import javafx.application.Application; import javafx.scene.Scene; import javafx.stage.Stage; import views.MainView; public class App extends Application { public static void main(String[] args) throws Exception { launch(args); } @Override public void start(Stage primaryStage) throws Exception { MainView mainView = new MainView(); primaryStage.setTitle("Text komponens"); primaryStage.setScene(new Scene(mainView)); primaryStage.show(); } }