diff options
author | Sven Gothel <[email protected]> | 2001-02-13 05:32:07 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-02-13 05:32:07 +0000 |
commit | 3e2b16a820bfe03f8f3837c3aaa615c8c4b7f18c (patch) | |
tree | d834a05eb37751b4c95045c3021589f2e22fcd9f /demos/MiscDemos/morph3d.java | |
parent | 91bc9d109b2d16e6d42f1fbcc9d3dbca51c40b69 (diff) |
JAWT Support JDK >=1.3
Diffstat (limited to 'demos/MiscDemos/morph3d.java')
-rwxr-xr-x | demos/MiscDemos/morph3d.java | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/demos/MiscDemos/morph3d.java b/demos/MiscDemos/morph3d.java index 7c8a8fe..6669163 100755 --- a/demos/MiscDemos/morph3d.java +++ b/demos/MiscDemos/morph3d.java @@ -171,16 +171,29 @@ public class morph3d extends SimpleGLAnimApplet1 public void init() { - super.init(); - Dimension d = getSize(); - canvas = new morph3dCanvas(d.width, d.height); - add("Center", canvas); + super.init(); + Dimension d = getSize(); + canvas = new morph3dCanvas(d.width, d.height); + add("Center", canvas); } public static void main( String args[] ) { Frame mainFrame = new Frame("morph3d"); + mainFrame.addWindowListener( new WindowAdapter() + { + public void windowClosed(WindowEvent e) + { + System.exit(0); + } + public void windowClosing(WindowEvent e) + { + windowClosed(e); + } + } + ); + GLContext.gljNativeDebug = true; GLContext.gljClassDebug = true; |