I tested your code, works perfect for me.
-----Original Message-----
From: Andy Tay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 10:22 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D]

I try to set my MainFrame to be 400, 400 and even 500, 500.. But when i run the program.. It always give me a standard size which I couldn't change it. 
 
Andy
 
 
public void init() {
 
  setLayout(new BorderLayout());
        Canvas3D canvas3D = new Canvas3D(null);
        add("Center", canvas3D);
 
        BranchGroup scene = createSceneGraph();
 
        // SimpleUniverse is a Convenience Utility class
        SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
 
 // This will move the ViewPlatform back a bit so the
 // objects in the scene can be viewed.
        simpleU.getViewingPlatform().setNominalViewingTransform();
 
        simpleU.addBranchGraph(scene);
    } // end of FinalProject constructor
 
    //  The following allows this to be run as an application
    //  as well as an applet
 
    public static void main(String[] args) {
        //Frame frame =
        new MainFrame(new FinalProject(), 400, 400);
    } // end of main method of FinalProject

Reply via email to