The Artima Developer Community
Sponsored Link

Java Answers Forum
Java application in Maximized state

1 reply on 1 page. Most recent reply: Apr 12, 2003 7:19 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Java application in Maximized state Posted: Apr 11, 2003 11:38 PM
Reply to this message Reply
Advertisement
How can I make my gui application appear in a maximized state? when i run from the command line, java xyz, i need to press the Maximize button. I need to eliminate that button press. Please help.


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Java application in Maximized state Posted: Apr 12, 2003 7:19 PM
Reply to this message Reply
for the parent window or frame or component, change the size to full screen.

setSize(Toolkit.getDefaultToolkit().getScreenSize();

or

setPreferredSize(Toolkit.getDefaultToolkit().getScreenSize();

Flat View: This topic has 1 reply on 1 page
Topic: dynamic memory allocation in stack and heap Previous Topic   Next Topic Topic: Cleaned code up, but still need help.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use