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: Cursor.MOVE_CURSOR in 1.4.2_05-141.3



email@hidden wrote:
Doug Zwick wrote:
| I'm getting a strange solid-white-filled arrow cursor
| back from Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR).
| I expected the "Open Hand" cursor. Running my code under
| 1.3.1_03-76 gives the expected cursor, as does MRJ 2.2.6.
| | Is my Java install screwed, or do others see this too?
| | Simple test program:


I get the regular, ordinary black-with-white-outline arrow. (To make sure that the code did anything at all on my system, I tried it with WAIT_CURSOR, and got the Static CD of Busyness [not to be confused with the Spinning Beachball of Death].)

I get a not-so-ordinary white-with-black-outline arrow with

java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.3)
Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)

running on MacOS 10.3.6

I also tried the WAIT_CURSOR and got something I had never seen before
(although I'm new to the Mac). It did convey the idea of "waiting", but
it was definitely not the Spinning Beachball of Death.

Anyway, Java cursor management gives me a headhache under Mac OS X...

##

I'll take this opportunity to ask a cursor-related question: the ZUI
toolkit [1] I develop often draws its own custom cursor, requiring that
I hide the system cursor (something easily done with CUSTOM_CURSOR and a
transparent icon). This works fine under both Linux and Windows. It
almost works fine with Mac OS X, i.e. the system cursor disappears when
the mouse enters my JFrame, but it is not set back to its default
appearance when the mouse leaves that JFrame (until I click somewhere
outside the JFrame).

[1] http://zvtm.sourceforge.net

There is one exception to this: when the cursor traverses a region of
this JFrame (say a JLabel) that asks it to draw one of the standard
cursors (e.g. DEFAULT_CURSOR), before exiting the JFrame. So, one
workaround I tried was to embed my system-cursor-hiding JPanel inside a
slightly bigger component (acting as a border) that sets the cursor to
the default system cursor. But this works only when the mouse moves
slowly (if it moves too quickly, it can just "jump" over this border and
the cursor is not set back to the system cursor).

If anybody can suggest a way to fix this, I'd be greatful.

Emmanuel

--
Emmanuel Pietriga
INRIA Futurs - Projet In Situ    tel : +33 1 69 15 34 66
Bat 490, Université Paris-Sud    fax : +33 1 69 15 65 86
91405 ORSAY Cedex            http://www.lri.fr/~pietriga


_______________________________________________ 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
References: 
 >Cursor.MOVE_CURSOR in 1.4.2_05-141.3 (From: Doug Zwick <email@hidden>)
 >Re: Cursor.MOVE_CURSOR in 1.4.2_05-141.3 (From: 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.