A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Swing / AWT / SWT
full screen size of JFRame in swing
Joined: Apr 28, 2010
May 04, 2010 13:50:09
hi all pleases can you tell me how to get full screen size of
Joined: Oct 27, 2005
May 04, 2010 14:12:01
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:
GraphicsEnvironment environment = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice device = GraphicsEnvironment.getDefaultScreenDevice(); device.setFullScreenWindow(frame);
Pass null to that last call to turn off full-screen mode.
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: full screen size of JFRame in swing
Stretch the image size.
How to Start Applet Maximized
JPanel and JFrame
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013