Article View: borland.public.jbuilder.java.swing
Article #10325Re: JWindow windowDeactivated doesn't seem to work !!
From: Khurram Shakir
Date: Mon, 18 Oct 1999 00:00
Date: Mon, 18 Oct 1999 00:00
17 lines
1053 bytes
1053 bytes
Nadia, instead of using windows deactivated event use contentPane of the window and trap mouse event using addmouse Listener. and use setVisible(false) on mouse click first getTopLevelAncester of your contentPane Panel and the JWindow win = new JWindow(); JPanel panel; // your panel; win.setContentPane(panel); JWindow w = (JWindow)panel.getTopLevelAncestor(); w.setVisible(false); use setVisible(false) and then call dispose(); hope this will help; regards, Khurram
Technical Details
Message-ID:
<7ufcqp$p6d13@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37F1F05A.39A59771@spring.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,48eb60fc7fd3ad91 X-Google-Attributes: gid111d45,public From: "Khurram Shakir" <kshakir@prosys.com.pk> Subject: Re: JWindow windowDeactivated doesn't seem to work !! Date: 1999/10/18 Message-ID: <7ufcqp$p6d13@forums.borland.com> X-Deja-AN: 537525307 References: <37F1F05A.39A59771@spring.fr> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing