How to change cursor icon in Java?

前端 未结 5 1419
误落风尘
误落风尘 2020-12-08 14:06

I would like to change the cursor icon to my customized 32x32 image when a Java application is executing. I looked and searched, those I found are just setting cursor on a J

5条回答
  •  执笔经年
    2020-12-08 15:03

    Why don't you have a class MyFrame which exteds JFrame. All it does is call the JFrame constructor and sets the cursor to your desired cursor. In my application we have a touch screen with no cursor so this is how I intend to implement it.

提交回复
热议问题