Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lost mouse events



Hello,

I am experiencing strange lost mouse events on Mac OS X and would appreciate any help you can give me.

I am writing a Java 1.3 application which has a JFrame that opens a modeless JDialog.

The first thing is that it takes 2 clicks going between the frame and the dialog. Say the dialog is activated and I want to click on a radio button on the frame. The first click on the radio button simply activates the frame, the second click then checks the radio button. Same thing if the frame is activated and I want to click on a button on the dialog. This happens on 10.1, 10.2, and 10.3. Note that the same code runs fine on Windows and even on Mac OS 9.x (fine meaning the first click both activates the frame and checks the radio button.)

It gets worse with Tiger. Now sometimes it takes 3 clicks! What happens is the first click, the frame gets activated but the control never receives any mousePressed or mouseClicked event. With the second click, the control still does not receive any mouse events, but its parent (a JPanel) receives a mousePressed (but not a mouseReleased nor a mouseClicked.) It is the third click that the control receives all mouse events.

It is similar with my application (with the dialog closed) and another application (say Simple Text). If Simple Text is on top of my application and I want to check a radio button, it also takes 2 clicks. Only that with Tiger, it still only needs 2 clicks (instead of 3 like between my frame and my dialog.)

Any idea?

Thanks in advance,
Nhan.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.