Question on MouseEvent
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. __ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Question on MouseEvent
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 EllisSoftware 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]
Re: Does Java thread can use multiprocessor?
Hi Urs, I would guess if you use the "native threads" VM then you will have your Java threads mapped to "clone" system calls (on Linux) and hence, runnning on (potentially) separate CPU's. You will have to download and install the native threads VM from blackdown. Green threads I think does all thread scheduling in application space. Regards, Bill Halchin >From: negorin <[EMAIL PROTECTED]> >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >Subject: Does Java thread can use multiprocessor? >Date: Wed, 20 Sep 2000 13:10:29 +0800 > >Hi, >who can help me? I have a PC which have two CPU. I want programming >with java thread. >but I don't know java thread use one CPU or two? I heard java green thread >just use one >cpu, I want use two. how to resolve this problem? > > thx >urs absinthe > > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]