File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Closing a Frame in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Closing a Frame in Java" Watch "Closing a Frame in Java" New topic

Closing a Frame in Java

Richard Mendoza
Ranch Hand

Joined: Feb 26, 2003
Posts: 48
I have a command button in my frame named CLOSE. What is the command that will close the the frame after clicking the CLOSE command button?
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Are you talking about an AWT/Swing frame, or a HTML frame?
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
Moving to Java In General( intermediate ) forum....

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Here's a simple example:

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: Closing a Frame in Java
It's not a secret anymore!