1 |
|
/* |
2 |
|
* i-scream central monitoring system |
3 |
+ |
* http://www.i-scream.org.uk |
4 |
|
* Copyright (C) 2000-2002 i-scream |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
156 |
|
getContentPane().add(bottom, "South"); |
157 |
|
|
158 |
|
// a nice icon for the window |
159 |
< |
setIconImage((new ImageIcon("./resources/server.gif")).getImage()); |
159 |
> |
setIconImage((new ImageIcon(getClass().getResource("/resources/server.gif"))).getImage()); |
160 |
|
|
161 |
|
// and just because we can, a silly splash screen |
162 |
|
// of the dudes that did this funky jibble |
278 |
|
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
279 |
|
JPanel splash = new JPanel(); |
280 |
|
splash.setBackground(Color.black); |
281 |
< |
JLabel image = new JLabel((new ImageIcon("./resources/i-scream-splash.gif"))); |
281 |
> |
JLabel image = new JLabel((new ImageIcon(getClass().getResource("/resources/i-scream-splash.gif")))); |
282 |
|
splash.add(image); |
283 |
|
setContentPane(splash); |
284 |
|
Dimension screen = getToolkit().getScreenSize(); |