sujith2s
12-18-2007, 12:45 AM
Hi..,
i am using applet to do my java3d applications. its working in webpage. i want this application to work in fullscreen mode in user system by pressing any key in the web page. so i develop a class which recieves the cavas3d object, the same canvas3d object in which i did all the java3d work. the problem here is i can only read the canvas details.. means if i put canvas color then only that color, no information about the scenegraph object. i want to read canvas as well as the scenegraph objects.
The Class i for this is
class fullScreen
{
public fullScreen(Canvas3D c) {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
Frame frame = new Frame(null, config);
frame.setUndecorated(true);
frame.setResizable(true);
frame.add("Center", c);
gs[0].setFullScreenWindow(frame);
setVisible(true);
}
}
Any body.. if you can pls help....
i am using applet to do my java3d applications. its working in webpage. i want this application to work in fullscreen mode in user system by pressing any key in the web page. so i develop a class which recieves the cavas3d object, the same canvas3d object in which i did all the java3d work. the problem here is i can only read the canvas details.. means if i put canvas color then only that color, no information about the scenegraph object. i want to read canvas as well as the scenegraph objects.
The Class i for this is
class fullScreen
{
public fullScreen(Canvas3D c) {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();
Frame frame = new Frame(null, config);
frame.setUndecorated(true);
frame.setResizable(true);
frame.add("Center", c);
gs[0].setFullScreenWindow(frame);
setVisible(true);
}
}
Any body.. if you can pls help....