diff options
Diffstat (limited to 'src/classes/org/jdesktop/j3d/examples/text3d')
-rw-r--r-- | src/classes/org/jdesktop/j3d/examples/text3d/Text3DLoad.java | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/src/classes/org/jdesktop/j3d/examples/text3d/Text3DLoad.java b/src/classes/org/jdesktop/j3d/examples/text3d/Text3DLoad.java index e6b1e3a..a61531e 100644 --- a/src/classes/org/jdesktop/j3d/examples/text3d/Text3DLoad.java +++ b/src/classes/org/jdesktop/j3d/examples/text3d/Text3DLoad.java @@ -44,17 +44,39 @@ package org.jdesktop.j3d.examples.text3d; -import com.sun.j3d.loaders.objectfile.*; import java.applet.Applet; -import java.awt.*; -import java.awt.event.*; -import com.sun.j3d.utils.applet.MainFrame; -import com.sun.j3d.utils.universe.*; -import javax.media.j3d.*; -import javax.vecmath.*; -import java.io.*; -import com.sun.j3d.utils.behaviors.vp.*; -import com.sun.j3d.utils.behaviors.keyboard.*; +import java.awt.BorderLayout; +import java.awt.Button; +import java.awt.Font; +import java.awt.GraphicsConfiguration; +import java.awt.Panel; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; + +import org.jogamp.java3d.Alpha; +import org.jogamp.java3d.AmbientLight; +import org.jogamp.java3d.Appearance; +import org.jogamp.java3d.Background; +import org.jogamp.java3d.BoundingSphere; +import org.jogamp.java3d.BranchGroup; +import org.jogamp.java3d.Canvas3D; +import org.jogamp.java3d.DirectionalLight; +import org.jogamp.java3d.Font3D; +import org.jogamp.java3d.FontExtrusion; +import org.jogamp.java3d.Material; +import org.jogamp.java3d.RotationInterpolator; +import org.jogamp.java3d.Shape3D; +import org.jogamp.java3d.Text3D; +import org.jogamp.java3d.Transform3D; +import org.jogamp.java3d.TransformGroup; +import org.jogamp.java3d.utils.applet.MainFrame; +import org.jogamp.java3d.utils.behaviors.vp.OrbitBehavior; +import org.jogamp.java3d.utils.universe.SimpleUniverse; +import org.jogamp.java3d.utils.universe.ViewingPlatform; +import org.jogamp.vecmath.Color3f; +import org.jogamp.vecmath.Point3d; +import org.jogamp.vecmath.Point3f; +import org.jogamp.vecmath.Vector3f; public class Text3DLoad extends Applet implements ActionListener { @@ -211,7 +233,7 @@ public class Text3DLoad extends Applet implements ActionListener { } - public void init() { + public void init() {System.setProperty("sun.awt.noerasebackground", "true"); if (textString == null) { textString = "Java3D"; @@ -280,7 +302,7 @@ public class Text3DLoad extends Applet implements ActionListener { // The following allows Text3DLoad to be run as an application // as well as an applet // - public static void main(String[] args) { + public static void main(String[] args) {System.setProperty("sun.awt.noerasebackground", "true"); new MainFrame(new Text3DLoad(args), 700, 700); } } |