diff options
author | kcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2006-11-06 19:33:31 +0000 |
---|---|---|
committer | kcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2006-11-06 19:33:31 +0000 |
commit | 1564076ea001e1e8f96375fbea63c248553b051c (patch) | |
tree | bd5b96d3a3d9c4bebcab004a98cecda759e1eac0 /src | |
parent | d7b581d3d5dc132b3ba5244c01dc85bf87838292 (diff) |
Updated example to use new no-argument JCanvas3D constructor
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/org/jdesktop/j3d/examples/jcanvas3d/JInternalWorld.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/classes/org/jdesktop/j3d/examples/jcanvas3d/JInternalWorld.java b/src/classes/org/jdesktop/j3d/examples/jcanvas3d/JInternalWorld.java index 82b4beb..7193dc9 100644 --- a/src/classes/org/jdesktop/j3d/examples/jcanvas3d/JInternalWorld.java +++ b/src/classes/org/jdesktop/j3d/examples/jcanvas3d/JInternalWorld.java @@ -52,11 +52,9 @@ import com.sun.j3d.utils.universe.SimpleUniverse; import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; -import java.awt.GraphicsConfiguration; import javax.media.j3d.Alpha; import javax.media.j3d.BoundingSphere; import javax.media.j3d.BranchGroup; -import javax.media.j3d.GraphicsConfigTemplate3D; import javax.media.j3d.RotationInterpolator; import javax.media.j3d.Transform3D; import javax.media.j3d.TransformGroup; @@ -95,9 +93,7 @@ public class JInternalWorld extends JInternalFrame { this.model = model; model.addRow( new Object[]{new Integer( hashCode()), Integer.valueOf(0) }); - GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration(); - - c = new JCanvas3D( new GraphicsConfigTemplate3D() ); + c = new JCanvas3D(); if (true == isDelayed) { c.setResizeMode(c.RESIZE_DELAYED); |