Article View: borland.public.jbuilder.java.api
Article #3018Re: How to iconify a window?
From: John P. McGrath
Date: Mon, 25 May 1998 00:00
Date: Mon, 25 May 1998 00:00
26 lines
1318 bytes
1318 bytes
NR Bessmer <nbessmer@bosx.com> wrote in article
<3559FEF2.7699BA4E@bosx.com>...
> I want a 'Close' button in my window to iconify this window when
> clicked. I expected that the following code will do it, but nothing
> happens...
> void ButtonClose_actionPerformed(ActionEvent e) {
> WindowEvent we = new WindowEvent (this, Event.WINDOW_ICONIFY);
> dispatchEvent(we);
> }
I am pretty sure that the WINDOW_ICONIFY event is a notification event.
You can trap it to find out when your window is iconified, but cannot use
it to iconify the window.
And, I have searched the docs, and have found no way of iconifying a
window. The only way I know of that would work would be to write some
native code to iconify the window. It would be nice if Sun should add this
capability.
--
John P. McGrath
<mcgrath@enter.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID:
<01bd87b0$5e1266a0$0e47aacc@ferd>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3559FEF2.7699BA4E@bosx.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,ece5492e7e979c93 X-Google-Attributes: gid1089d0,public From: "John P. McGrath" <mcgrath@enter.net> Subject: Re: How to iconify a window? Date: 1998/05/25 Message-ID: <01bd87b0$5e1266a0$0e47aacc@ferd> X-Deja-AN: 356262595 References: <3559FEF2.7699BA4E@bosx.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.api