Hi all, I am trying to construct a virtual universe instead of simple universe because I want to learn it. It compiles but when I run it, it automatically reboots my system, here is part of my program:
public JEngine(String vu){ // Define a frame Frame frame = new Frame("JEngine 0.1a"); frame.setLayout(new BorderLayout()); frame.setUndecorated(true); frame.setBackground(Color.BLACK); // Set FullScreen mode GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice d = ge.getDefaultScreenDevice(); if(d.isFullScreenSupported()) d.setFullScreenWindow(frame); // Setup Canvas3D, render the scene and add to universe GraphicsConfiguration[] gc = d.getConfigurations(); GraphicsConfigTemplate3D gct = new GraphicsConfigTemplate3D(); GraphicsConfiguration graphics = gct.getBestConfiguration(gc); Canvas3D c3d = new Canvas3D(graphics); Button button = new Button("Exit"); button.addActionListener(new ActionEvents()); frame.add(c3d, BorderLayout.CENTER); frame.add(button, BorderLayout.SOUTH); BranchGroup bg = createSceneGraph(); bg.compile(); VirtualUniverse u = new VirtualUniverse(); Locale locale = new Locale(u); BranchGroup bg2 = createView(c3d); bg2.compile(); locale.addBranchGraph(bg); locale.addBranchGraph(bg2); // Show frame frame.show(); } Any hints? Best wishes, Andy =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".