зеркало из https://github.com/mozilla/pjs.git
Modified means of getting the splash screen image so it works when app is run as a jar. jrg
This commit is contained in:
Родитель
e752faa81a
Коммит
aa3a94f670
|
@ -34,7 +34,7 @@ public class Splash extends JWindow {
|
|||
|
||||
public Splash() {
|
||||
super();
|
||||
ImageIcon image = new ImageIcon("ui/images/splash.gif");
|
||||
ImageIcon image = new ImageIcon(getClass().getResource("images/GrendelSplash.jpg"));
|
||||
JLabel splashLabel = new JLabel(image);
|
||||
getContentPane().add(splashLabel);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче