src/main/java/chalmers/pimp/controller/ControllerImpl.java
private void prepareStage(Scene scene) {
    Objects.requireNonNull(scene);
    stage.setScene(scene);
    stage.setMaximized(true);
    stage.setTitle("PIMP - Professional Image Manipulation Program");
    try {
      var icon = new Image(Resources.find(getClass(), "images/pimp_icon.png").toURI().toString());
      stage.getIcons().add(icon);
    } catch (Exception e) {
      System.err.println("Failed to load PIMP icon! Exception: " + e);
    }
  }
/**
   * Prepares the primary stage for use.
   *
   * @param scene the scene that will be added to the stage.
   * @throws NullPointerException if the supplied scene is {@code null}.
   */
Prepares the primary stage for use.
@param scene the scene that will be added to the stage.
@throws NullPointerException if the supplied scene is  null.
Prepares the primary stage for use . @param scene the scene that will be added to the stage . @throws NullPointerException if the supplied scene is null .
private void prepareStage(Scene scene) {
    Objects.requireNonNull(scene);
    stage.setScene(scene);
    stage.setMaximized(true);
    stage.setTitle("PIMP - Professional Image Manipulation Program");
    try {
      var icon = new Image(Resources.find(getClass(), "images/pimp_icon.png").toURI().toString());
      stage.getIcons().add(icon);
    } catch (Exception e) {
      System.err.println("Failed to load PIMP icon! Exception: " + e);
    }
  }
private void prepareStage ( Scene scene ) { Objects . requireNonNull ( scene ) ; stage . setScene ( scene ) ; stage . setMaximized ( true ) ; stage . setTitle ( "PIMP - Professional Image Manipulation Program" ) ; try { var icon = new Image ( Resources . find ( getClass ( ) , "images/pimp_icon.png" ) . toURI ( ) . toString ( ) ) ; stage . getIcons ( ) . add ( icon ) ; } catch ( Exception e ) { System . err . println ( "Failed to load PIMP icon! Exception: " + e ) ; } }
Prepares the primary stage for use.
Prepares the primary stage for use .