brEezE wrote:
> 
> Hi,
> I have a JWindow displayed below a button, similar to
> a JComboBox. The problem is when the "parent" JFrame
> is moved to other location, the JWindow is still
> remain on the screen at the old location. How do i
> hide the JWindow when I click/drag on the title bar of
> the "parent" JFrame?
> I have notice that JWindow, and all it's child
> components will not receive the key focus, otherwise i
> will just need to catch the FocusEvent.
> 
> any help is appreciated. thanks in advance.
> 

I'd probably have the child add itself as a component listener
on the parent and control itself accordingly.

http://java.sun.com/docs/books/tutorial/uiswing/events/componentlistener.html
http://java.sun.com/docs/books/tutorial/uiswing/events/ComponentEventDemo.html


--
Joi Ellis                    Software Engineer
Aravox Technologies          [EMAIL PROTECTED], [EMAIL PROTECTED]

No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried.  Anything
that kicks a monopoly in the pants has got to be good for something.
           - Chris Johnson


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to