summaryrefslogtreecommitdiffstats
path: root/src/demos/j2d/TestOverlay.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-10-30 00:36:37 +0000
committerKenneth Russel <[email protected]>2008-10-30 00:36:37 +0000
commit1d4b8640e128143707e6c19f6249d6b4dba0d2a0 (patch)
tree6e84ac75c88aee73b60255048a00cfd301f8db3f /src/demos/j2d/TestOverlay.java
parent0df738664c9ade75e38c3982560b5cf3e4cdf3df (diff)
Incorporated patch from Michael Bien fixing roughly 80% of compilation errors
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@287 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/j2d/TestOverlay.java')
-rwxr-xr-xsrc/demos/j2d/TestOverlay.java29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/demos/j2d/TestOverlay.java b/src/demos/j2d/TestOverlay.java
index b0bcae2..9d6212d 100755
--- a/src/demos/j2d/TestOverlay.java
+++ b/src/demos/j2d/TestOverlay.java
@@ -39,23 +39,28 @@
package demos.j2d;
+
+
+import demos.gears.Gears;
+import demos.util.*;
+import gleem.linalg.*;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Graphics2D;
import java.awt.Rectangle;
-import java.awt.event.*;
-import java.awt.font.*;
-import java.text.*;
-
-import javax.media.opengl.*;
-import com.sun.opengl.util.*;
-import com.sun.opengl.util.j2d.*;
-
-import demos.gears.Gears;
-import demos.util.*;
-import gleem.linalg.*;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
+import java.awt.font.FontRenderContext;
+import java.awt.font.GlyphVector;
+import java.text.DecimalFormat;
+import javax.media.opengl.GL;
+import javax.media.opengl.GLAutoDrawable;
+import javax.media.opengl.GLCapabilities;
+import javax.media.opengl.GLEventListener;
+import javax.media.opengl.awt.GLCanvas;
+import javax.media.opengl.util.Animator;
/** A simple test of the Overlay utility class. Draws gears underneath
with moving Java 2D-rendered text on top. */
@@ -84,7 +89,7 @@ public class TestOverlay implements GLEventListener {
}).start();
}
});
- frame.show();
+ frame.setVisible(true);
animator.start();
}