(final Runnable runnable)
| 26 | } |
| 27 | |
| 28 | private void runAsync(final Runnable runnable) { |
| 29 | if (SwingUtilities.isEventDispatchThread()) { |
| 30 | |
| 31 | runnable.run(); |
| 32 | } else { |
| 33 | |
| 34 | SwingUtilities.invokeLater(runnable); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | private void createSplash() { |
| 39 | ImageIcon img = new ImageIcon(getClass().getResource("/gui/splash.png")); |