import javax.media.j3d.*;
import com.sun.j3d.utils.universe.*;
import java.awt.*;
import javax.swing.*;
public class ex64
{
public static void main(String[] args)
{
ex64 test = new ex64();
}
public ex64()
{
JFrame frame = new JFrame();
frame.setSize(250,250);
frame.setTitle("ex64");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel cp = new JPanel();
cp.setLayout(null);
frame.add(cp);
GraphicsConfiguration g_config = SimpleUniverse.getPreferredConfiguration();
Canvas3D canvas = new Canvas3D(g_config);
canvas.setBounds(0,0,250,250);
cp.add(canvas);
SimpleUniverse universe = new SimpleUniverse(canvas);
frame.setVisible(true);
}
}
最終更新:2010年01月06日 06:19