diff options
Diffstat (limited to 'src/demos/fullscreen/JGearsFullscreen.java')
-rwxr-xr-x | src/demos/fullscreen/JGearsFullscreen.java | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/demos/fullscreen/JGearsFullscreen.java b/src/demos/fullscreen/JGearsFullscreen.java index 465c566..d9d1134 100755 --- a/src/demos/fullscreen/JGearsFullscreen.java +++ b/src/demos/fullscreen/JGearsFullscreen.java @@ -1,13 +1,21 @@ package demos.fullscreen; -import java.awt.*; -import java.awt.event.*; -import javax.swing.*; - -import javax.media.opengl.*; -import com.sun.opengl.util.*; import demos.jgears.JGears; -import demos.util.*; +import demos.util.ScreenResSelector; +import java.awt.BorderLayout; +import java.awt.DisplayMode; +import java.awt.EventQueue; +import java.awt.Frame; +import java.awt.GraphicsDevice; +import java.awt.GraphicsEnvironment; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import javax.media.opengl.awt.gl2.GL2JPanel; +import javax.media.opengl.util.Animator; +import javax.swing.JButton; +import javax.swing.JFrame; + + /** * JGearsFullscreen.java <BR> @@ -53,7 +61,7 @@ public class JGearsFullscreen { if (newMode != null) { frame.setUndecorated(true); } - GLJPanel drawable = new JGears(); + JGears drawable = new JGears(); drawable.addGLEventListener(new FullscreenWorkaround(initWidth, initHeight)); frame.getContentPane().setLayout(new BorderLayout()); |