• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to set the Maximum size of Application Window when Loaded?

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am doing a Project I need to see the Application window with Full Screen size GUI. I have tried with method like setExtendedState(), SetMaximumSize(). setMinimumSize() and setMaximizedBounds(). I am using NetBeans as GUI Builder. I am not getting the requirement when the Form is executed. How can I fix this?

Thanks and Regards

Prithiraj Sen Gupta
[ January 21, 2008: Message edited by: Prithiraj Sen Gupta ]
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java.awt.GraphicsDevice has a method to set the (single) fullscreen window. You can get a reference to a GraphicsDevice object through java.awt.GraphicsEnvironment (either getDefaultScreenDevice or getScreenDevices), which has a static method to get a reference.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it depends on what you mean by Full Screen size GUI. If you mean Full Screen Mode as in no title bars, no OS access, etc, Rob is on the right track. Take a look at this.

If you just want the Frame maximized setExtendedState is the way to go but you must call it after the UI is realized. So after setVisible(true).
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
setSize(java.awt.Toolkit.getDefaultToolkit().getScreenSize());
use this command it will automatically open in fullscreen
 
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic