title: JavaFX: Artifact displays empty window only
body: <p>Preface: I am pretty new to JavaFX</p>
  
  <p>Made an simple image resizing application and need to build an artifact of the application.
  Using IntelliJ and Eclipse (tried both), i built normal JAR artifacts and JavaFX artifacts. Both are executable, <strong>but only show an empty window.</strong></p>
  
  <p>When starting the application out of the IDE, there is no problem; the window containing all subpanes get displayed as they should.</p>
  
  <p>Any ideas how to solve this problem? Thanks in advance!</p>
  
  <p>Attached code of the application initialization part and a picture of the resulting windows - maybe it helps.</p>
  
  <pre><code>public class MainApp extends Application {
  
  private Stage primaryStage;
  private BorderPane rootLayout;
  
  private SettingsViewController settingController;
  private MainViewController mainViewController;
  
  @Override
  public void start(Stage primaryStage) {
      this.primaryStage = primaryStage;
      this.primaryStage.setTitle("SimpleImageResizer");
  
      this.primaryStage.getIcons().add(new Image("file:icon.png"));
  
      this.primaryStage.setOnCloseRequest(we -&gt; ConfigurationCache.getInstance().pushConfig());
  
      targetResolutions.addAll(Arrays.asList(ResolutionPreset.values()));
      supportedFileFormats.addAll(Arrays.asList(SupportedFileFormat.values()));
  
      initRootLayout();
  
      showMainView();
      showSettingsView();
      primaryStage.setResizable(false);
  }
  
  public void initRootLayout() {
      try {
          // Load root layout from fxml file.
          FXMLLoader loader = new FXMLLoader();
          loader.setLocation(MainApp.class.getResource("view/RootLayout.fxml"));
          rootLayout = loader.load();
  
          // Show the scene containing the root layout.
          Scene scene = new Scene(rootLayout);
          primaryStage.setScene(scene);
          primaryStage.show();
      } catch (IOException e) {
          e.printStackTrace();
      }
  }
  .
  .
  .
  public static void main(String[] args) {
      launch(args);
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/JlsDu.png" alt="Artifact output"></p>
  
  <p><img src="https://i.stack.imgur.com/fudz8.png" alt="IDE output"></p>