+ case STATE_INIT:
+ initSplashScreenWindow();
+ startTime = System.currentTimeMillis() / 1000;
+ mainState = STATE_LOOP;
+ continue;
+ case STATE_LOOP:
+ if (!isVisible())
+ {
+ mainState = STATE_DONE;
+ continue;
+ }
+ if (!isInteractive
+ && ((System.currentTimeMillis() / 1000) - startTime) > 5)
+ {
+ setVisible(false);
+ continue;
+ }
+ if (isVisible() && refreshText())
+ {
+ iframe.repaint();
+ }
+ if (isInteractive)
+ {
+ return;
+ }
+ Timer timer = new Timer(500, new ActionListener()
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ System.out.println(htmlPane.getFont());
+ mainLoop();
+ }