hi all,
How to close a JFrame without implementing a window listener.Is it
possible to
close the JFrame without stopping the program that created the
JFrame?Thanks in advance.
Raam.
Roedy Green - 29 Mar 2006 06:59 GMT
>How to close a JFrame without implementing a window listener.Is it
>possible to
>close the JFrame without stopping the program that created the
>JFrame?Thanks in advance.
see http://mindprod.com/jgloss/jframe.html
for sample code.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Oliver Wong - 29 Mar 2006 16:20 GMT
> How to close a JFrame without implementing a window listener.
call setVisible(false) on the JFrame.
> Is it
> possible to
> close the JFrame without stopping the program that created the
> JFrame?
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFrame.html#setDefaultCloseO
peration(int)