开发者

Java change cursor

开发者 https://www.devze.com 2023-02-15 14:03 出处:网络
is there any way to change the cursor in Java at all, not just for one JComponent开发者_StackOverflow?

is there any way to change the cursor in Java at all, not just for one JComponent开发者_StackOverflow?

I need this because I want the cursor to change, when your mouse leaves the JFrame, so there is no JComponent in the background.

Thanks for your help!

esanits


Setting cursor on your JFrame or top level window should do the trick


If you want to change the system cursor (i.e. when the cursor is outside your application), this is the responsibility of your system. I don't think you can change the system's settings from Java in a platform-independent way.

0

精彩评论

暂无评论...
验证码 换一张
取 消