package boundary;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JWindow;

/**
 * Splash Screen
 */
public class SplashScreen extends JWindow {
  public SplashScreen(String file) throws IOException {
    JPanel content = (JPanel) getContentPane();
    content.setBackground(Color.white);

    BufferedImage splashImg = ImageIO.read(new File("img/" + file));

    int width = splashImg.getWidth();
    int height = splashImg.getHeight();

    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();

    int x = (screen.width - width)/2;
    int y = (screen.height - height)/2;
    setBounds(x,y,width,height);

    JLabel label = new JLabel(new ImageIcon("img/" + file));
    content.add(label, BorderLayout.CENTER);
    setVisible(true);
  }

  public void close() {
    setVisible(false);
    dispose();
  }
}


@@ -169,20 +169,27 @@
 java.io.
-File
+IOException
 ;%0Aimport
@@ -193,35 +193,28 @@
 ort java.io.
-IOException
+File
 ;%0Aimport jav
@@ -578,16 +578,38 @@
 edImage 
+splashImg; %0A    %09%0A    
 splashIm
@@ -651,16 +651,20 @@
 file));%0A
+    
 %0A    int
@@ -960,29 +960,25 @@
 ageIcon(
-%22img/%22 + file
+splashImg
 ));%0A    

Fix SplashScreen