This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes full screen size of JFRame in swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "full screen size of JFRame in swing" Watch "full screen size of JFRame in swing" New topic
Author

full screen size of JFRame in swing

vipin parode
Greenhorn

Joined: Apr 28, 2010
Posts: 1
hi all pleases can you tell me how to get full screen size of JFrame in swing
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19552
    
  16

Check out Frame.setExtendedState. If you want true full-screen you can use GraphicsDevice.setFullScreenWindow. Assuming you want to use your main (or only) screen:
Pass null to that last call to turn off full-screen mode.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: full screen size of JFRame in swing
 
Similar Threads
Full screen
Maximizing JFrame
JPanel and JFrame
How to Start Applet Maximized
Stretch the image size.