-
Full screen
I have to do an application "full screen" but I don't know how can I do that, and I didn't find something to do it, especially because I use jdk1.3.1 and I can't to use the latest jdk because I use some methods that in the new jdk are deprecate.
Can you help me?l.
-
It works in JDK 1.3.1 AND 5.0
It creates a windows with the same size of the screen.
Code:
Window frame = new Window(new Frame()) ;
Toolkit toolkit = Toolkit.getDefaultToolkit() ;
Dimension dim = toolkit.getScreenSize() ;
frame.setBounds(0, 0, dim.width, dim.height) ;
....
frame.setVisible(true) ;
-
the example is correct
but if you want use toFront() method to put close up