开发者

Java change cursor

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜