I have a java app that uses the following code to produce a full-screen window:

GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice graphicsDevice = graphicsEnvironment.getDefaultScreenDevice();

Frame frame = new Frame();

If I build this and double-click the jar file, it runs fine. If I put the jar file into the startup folder in Windows XP, it launches at startup, but after 5 seconds or so it minimizes.

How can I prevent the full-screen frame from minimizing?