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 / General / May 2007

Tip: Looking for answers? Try searching our database.

disabling maximise button in frame

Thread view: 
cyprian - 18 May 2007 11:13 GMT
how do i disable the maximise button in my swing frame. i tried asking
toolkit and i think toolkit is saying not supported for such field
constants. who knows how?
Andrew Thompson - 18 May 2007 12:56 GMT
>how do i disable the maximise button in my swing frame.

Please add '?' marks for any question.

> ..i tried asking toolkit ..

Did you say 'please'?

Or another way to put that is ..
<http://www.physci.org/codes/javafaq.html#exact>

> ..and i think toolkit is saying not supported ..

Ditto the above.

>...for such field
>constants. who knows how?

You had the right idea, but were looking in the
wrong place.  Toolkit is more for system wide
attributes and methods.  See instead..
<http://java.sun.com/javase/6/docs/api/java/awt/Frame.html#setResizable(boolean
)>

Signature

Andrew Thompson
http://www.athompson.info/andrew/

cyprian - 18 May 2007 14:25 GMT
> >how do i disable the maximise button in my swing frame.
>
[quoted text clipped - 24 lines]
>
> Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1

thanks thompson. i was thrown offtrack by windowStateListener.  i
thought the method i want should return a boolean, let
JFrame.setdefault....
am putting the code in right now. should i?
i have the ? just in the right place! !(?) or not
have a nice day.
i just did so. it worked. grinning now :)


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.