https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
a

adte

02/06/2023, 9:36 PM
Hey guys, I would like to use the closed hand cursor on mac os, but it seems like it's not defined in the Swing cursors. Is there a way that I can use this cursor? Is it possible with some JNI library to access NSCursor and get a PointerIcon instance from it?
k

Kirill Grouchnikov

02/06/2023, 11:48 PM
a

adte

02/07/2023, 12:43 AM
@Kirill Grouchnikov No, I looked at the source code, there are only a few cursors in there. They're also not native cursors, they just have a styling kinda like old versions of Windows https://github.com/openjdk/shenandoah/blob/master/src/java.desktop/share/classes/sun/awt/resources/cursors/cursors.properties
9 Views