Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2004

Tip: Looking for answers? Try searching our database.

Maximize window

Thread view: 
Bj?rn Kristian Larsen - 05 Feb 2004 13:29 GMT
Hello

I wonder if it is pissible to maximize a window (JFrame) at start-up.
(using Windows)
I know how to get the screen-size from the toolkit, and use the height and
width values
in setSize(), but how do I maximize it like you minimize it by using
setState(Window.ICONIFIED)

Bjorn
Andrew Thompson - 05 Feb 2004 13:45 GMT
> Hello
>
[quoted text clipped - 4 lines]
> in setSize(), but how do I maximize it like you minimize it by using
> setState(Window.ICONIFIED)

I suspect you might find your answer if you
check the 'see also' part of the JavaDocs for
setState()..

HTH

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Bj?rn Kristian Larsen - 05 Feb 2004 13:59 GMT
> > Hello
> >
[quoted text clipped - 10 lines]
>
> HTH

No. Maby I have an old API, but the 'see also' part contains only
getState( )
Andrew Thompson - 05 Feb 2004 14:27 GMT
>>> Hello
>>>
>>> I wonder if it is pissible to maximize a window (JFrame) at
>>> start-up. (using Windows)
...
>> I suspect you might find your answer if you
>> check the 'see also' part of the JavaDocs for
>> setState()..
...
> No. Maby I have an old API, but the 'see also' part contains only
> getState( )

It is sounding like it, I was looking at
the docs for 1.4.0.  Have a look at
the online docs..
http://java.sun.com/j2se/1.4.2/docs/api/

That should explain a bit more.

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Thomas Fritsch - 05 Feb 2004 14:51 GMT
Andrew Thompson schrieb:

>Bjørn Kristian Larsen wrote:
>  
[quoted text clipped - 13 lines]
>setState()..
>  

I suspect you refer to
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html#setState(int)
where method setExtendedState(int)  is mentioned.

This method is available in 1.4, but not in 1.3.
See http://java.sun.com/j2se/1.3/docs/api/java/awt/Frame.html#setState(int)

>HTH
>
[quoted text clipped - 4 lines]
>* http://www.1point1C.org/ Science & Technology
>  

______________________________________________________
Thomas <dot> Fritsch <at> ops <dot> de


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.