It works in JDK 1.3.1 AND 5.0
It creates a windows with the same size of the screen.
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) ;