pavel.safrata at oracle.com
Thu Apr 25 08:36:24 PDT 2013
the cursors you mention should appear automatically during drag-and-drop
operation. I think they should not be used manually elsewhere because
they are visually informing user about an ongoing drag-and-drop
operation and using them at different times would be confusing. During a
drag-and-drop operation the system is in a special mode with inner event
loop, temporarily holding the dragged data, blocking many other
features, and the well-known cursors make this clear to the user.
If the cursors don't work for you during DnD, please file a bug. If you
still think you need the cursors for your mouse events (which I tried to
explain is a discouraged pattern), you can file feature request and see
if it is approved (and even technically possible on all platforms).
On 25.4.2013 17:08, Werner Lehmann wrote:
> I am missing typical cursors during drag/drop, e.g. a deny, add, move,
> link cursor. Apparently those are not supported in
> javafx.scene.Cursor. How would this be solved in a
> platform-independent way?
> Best option currently seems to be: use the default cursor, and show
> some tooltip/popup or unmanaged node below the cursor position to
> indicate the drop effect to the user. Not really optimal...
> I could also use my own drag cursors but they would not fit into all
> sets of cursors on the supported platforms. If there was at least a
> way to get an image of the default cursor - then it could be
> "enhanced" with a small overlay. But that does not seem feasible either.
More information about the openjfx-dev