Thread: Full screen
View Single Post
  #2 (permalink)  
Old 07-02-2007, 07:46 AM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
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) ;
Reply With Quote