JFrame DefaultCloseOperation CLOSE_ON_EXIT fixlet

Mark Wielaard mark@klomp.org
Thu Apr 15 11:32:00 GMT 2004


Hi,

Noticed that JFrame get/setDefaultCloseOperation weren't public and
didn't do the right default thing. So I fixed them and added the correct
argument checking to setDefaultCloseOperation.

2004-04-15  Mark Wielaard  <mark@klomp.org>

        * javax/awt/JFrame.java (close_action): Default to HIDE_ON_CLOSE.
        (getDefaultCloseOperation): Make public.
        (processWindowEvent): Call System.exit(0) when HIDE_ON_CLOSE set.
        (setDefaultCloseOperation): Make public. Check argument. Add API doc.

Committed to classpath CVS.
Could someone with a recent gcj-gui-branch checkout add it there?

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JFrame.patch
Type: text/x-patch
Size: 2153 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040415/598fca0c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040415/598fca0c/attachment.sig>


More information about the Java-patches mailing list