Web Analytics Made Easy -
StatCounter How do I set a JFrame's size to full screen? - CodingForum

Announcement

Collapse
No announcement yet.

How do I set a JFrame's size to full screen?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I set a JFrame's size to full screen?

    I want the frame set to full screen upon launching it.

  • #2
    You're going to want to do something like..

    Code:
    frame.setExtendedState(Frame.MAXIMIZED_BOTH);
    And if you want to get rid of some of the menu bar stuff

    Code:
    frame.setUndecorated(true);
    Where frame is your jframe.
    "To iterate is human, to recurse divine." -L. Peter Deutsch

    Comment

    Working...
    X