wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Full screen mode in Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Full screen mode in Netbeans" Watch "Full screen mode in Netbeans" New topic
Author

Full screen mode in Netbeans

Jamie Wool
Ranch Hand

Joined: May 03, 2004
Posts: 49
Has anyone got any idea how to make netbeans start a jFrame up in full screen mode.

Have tried the usual:


Any ideas?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Do you mean with the JFrame maximized or FullScreen Mode? 2 different things with 2 entirely different solutions.

Fullscreen Mode

Maximize Screen - Kind of depends on what JDK version you are running. You can try:

setExtendedState(JFrame.MAXIMIZED_BOTH);

after you setVisible(true) on the frame. If you just set the size as the dimensions of the screen, the frame will fill the screen but won't trully be maximized.


GenRocket - Experts at Building Test Data
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Full screen mode in Netbeans