Mailing Lists: Apple Mailing Lists

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

Re: Component's setCursor problem from arbitrary thread (JDK 1.4)



I have bug summited for flaky setCursor behavior already. I couldn't isolate it
but all my setCursor calls are fromt the event thread (I think). It would be a
good idea to sumbit this information as an additional bug report if you haven't
done so already. (duplicates are not a bad thing on apple's bug reporting
system).

> Hi, all
>
> I got some problem with setCursor method.
> I didn't find anything in list archive, so here is my situation
>
> if I call setCursor from arbitrary thread (not event thread) setCursor
> doesn't work
>
> here is simple example that demonstrates it
>
> I created frame with 2 buttons
>
> if I click on the button I call
> setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR))
> sleep for 2 sec
> and call setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
>
> it works fine if I do it from actionPerformed
>
> for Swing components it works fine if I use SwingUtilities.invokeLater
> either
>
> I didn't see that problem in 1.3.1
>
> Panther's java (7b21) still has that problem


=====
---
Andrew - Lead Myster programmer

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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.