*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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.)
 
 
subject: Set JFrame to Full Screen AFTER it has been made visible.
 
Similar Threads
Why isn't this working?
How to use "setCaretPosition"
Problem with display of JComboBox
not so simple question about swing
Why doesn't main method return after GUI is created?