This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Set JFrame to Full Screen AFTER it has been made visible. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Set JFrame to Full Screen AFTER it has been made visible." Watch "Set JFrame to Full Screen AFTER it has been made visible." New topic
Author

Set JFrame to Full Screen AFTER it has been made visible.

Cameron Miller
Greenhorn

Joined: Jan 10, 2013
Posts: 13

I have a JFrame that is set visible when the program starts, but i want the user to have the option of setting the program full screen (i.e. by pressing F11).

How can I set the frame to full screen after it has been made visible? Will I need to dispose it? (That occured to me as i was typing this question.)

Thanks
Cameron Miller
Greenhorn

Joined: Jan 10, 2013
Posts: 13

Never mind i got it. (I do need to dispose. Answered my own question haha.)
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Set JFrame to Full Screen AFTER it has been made visible.
 
Similar Threads
Problem with display of JComboBox
Why doesn't main method return after GUI is created?
How to use "setCaretPosition"
not so simple question about swing
Why isn't this working?