Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Rotate Mouse-Cursor in alignment with Rotation of a Node

J. IshikawaAug 25 2015 — edited Aug 25 2015

Hi!

I am currently struggling with the following problem. I have a node, which I can rotate and resize but the mouse cursor doesn't adjust to the rotation of the node.

JavaFXCursorRotate.png

Case A

For the default case, unrotated node, I can rely and use the default mouse cursors for resizing (e.g. NE).

Case B

But after I rotated the node and want to resize again, the mouse cursor is still shown unrotated, which looks wrong.

Case C

What I would like to achieve is, that the mouse cursor rotates adjusts itself to the rotation of the parent node.

A possible solution might be to use an Image-based cursor and rotate the image for it, but I am not sure if this is really the best way to do this...

So I hope, there is a better solution for this problem.

Best regards,

Joern

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2015
Added on Aug 25 2015
1 comment
722 views