'Use user set custom cursor Java

I know that it is possible for users to define their own system-wide cursors on Windows and OSX. However, I haven't found any way to use those cursors in a Java class.

For example, say I have a JFrame, and a custom drawn component, like so:

Link in JFrame

This cursor was set using setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)). But I want to use the link cursor set by the user so the application is more integrated with the OS. Is there any way to not use the Java defined link cursor? Do I need to explicitly ask for a file? Or do I need to use JNA or something?

---EDIT---

I think I need to make the question more clear.

Say the user set their system-wide link cursor (the cursor that appears when hovering over a link, say in a web browser) to a picture of a banana. How do I switch to the banana cursor when hovering over a custom-drawn component?



Solution 1:[1]

Have You tried jLabel1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); this method should get the system cursor as you wanted.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SFFan123