public void run(DisplayMode dm) { setBackground(Color.GRAY); setForeground(Color.ORANGE); setFont(new Font("Arial", Font.BOLD, 24)); Screen s = new Screen(); try { s.setFullScreen(dm, this); try { Thread.sleep(5000); } catch (Exception s1) { } } catch (Exception sd) { } finally { s.restoreWindow(); } }