package sample; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage primaryStage) throws Exception { FXMLLoader loader = new FXMLLoader(this.getClass().getResource("\\InterfejsUzytkownika\\mainScreen.fxml")); //Parent loader = FXMLLoader.load(getClass().getResource("InterfejsUzytkownika/mainScreen.fxml")); //taki inny sposób StackPane stackPane = loader.load(); Scene scene = new Scene(stackPane,1280,720); primaryStage.setTitle("RedFlix - twoje źródło filmowych doznań"); primaryStage.setScene(scene); primaryStage.show(); /* FXMLLoader loader = new FXMLLoader(this.getClass().getResource("InterfejsUzytkownika/PanelGlowny.fxml")); BorderPane borderPane =loader.load(); Scene scene = new Scene(borderPane,1280,720); primaryStage.setTitle("RedFlix - twoje źródło filmowych doznań"); primaryStage.setScene(scene); primaryStage.show();*/ } public static void main(String[] args) { launch(args); } }