/** * Create a new splash screen */ Splash() { super(new Frame()); FontData.setStatusListener(this); try { image = ImageIO.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("org/newdawn/slick/tools/hiero/resources/splash.png")); Dimension size = Toolkit.getDefaultToolkit().getScreenSize(); setSize(400,250); setLocation((size.width - getWidth())/2, (size.height - getHeight()) / 2); setVisible(true); } catch (IOException e) { e.printStackTrace(); } }