Creates a splash screen. @return splash screen
()
| 93 | * @return splash screen |
| 94 | */ |
| 95 | private static JFrame splash() { |
| 96 | final JFrame f = new JFrame(); |
| 97 | f.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); |
| 98 | f.setAlwaysOnTop(true); |
| 99 | f.setUndecorated(true); |
| 100 | f.setIconImage(BaseXImages.get("logo_small")); |
| 101 | f.add(new JLabel(BaseXImages.icon("logo_large"))); |
| 102 | f.pack(); |
| 103 | f.setLocationRelativeTo(null); |
| 104 | f.setVisible(true); |
| 105 | return f; |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * Initializes the GUI. |