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 / November 2006

Tip: Looking for answers? Try searching our database.

JFrame problem

Thread view: 
matrix - 02 Nov 2006 04:45 GMT
I try to develop a program that has a mainFrame with button to open
frame_1
my problem is:

***when  I close frame_1 the whole program close but I need to close
this frame only ; is there a method in JFrame class to close frame_1
only.

***also,I want to disable the maximize button in the mainFrame

THANKS  very MUCH!!!
Andrew Thompson - 02 Nov 2006 05:53 GMT
Sub: JFrame problem

Note that:
- comp.lang.java.gui is specialised for GUI matters.
- 'JFrame close/maximize' might have been a better title

> I try to develop a program that has a mainFrame with button to open
> frame_1

Both those are poor names for classes.
Does your IDE let you change them?

> my problem is:
>
> ***when  I close frame_1 the whole program close but I need to close
> this frame only ; is there a method in JFrame class to close frame_1
> only.

Yes.  It's listed in the API docs.
<http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html>
More specifically..
<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFrame.html>
Look for 'close operation'.

> ***also,I want to disable the maximize button in the mainFrame

Also listed under 'extended state' (inherited from Frame).

> THANKS  very MUCH!!!

Your lack of future SHOUTING will be thanks enough.

Andrew T.


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.