Java swing “working in background” mouse cursor

只愿长相守 提交于 2019-12-07 02:35:13

问题


Is there a built in cursor that will show the "arrow plus hourglass" mouse pointer that is used when windows is working in the background, yet still allowing you to click on things? I know about WAIT_CURSOR, but I don't see anything like this. Do I need to make a custom cursor to get the hourglass-pointer combo?


回答1:


I don't see a built-in cursor that does this. All the pre-defined cursors reside here:
http://download.oracle.com/javase/7/docs/api/java/awt/Cursor.html

as you may well know.

You will need to create a custom cursor or find someone who has already done this. Here's a website showing you how to build your own custom cursor: http://blog.codebeach.com/2008/02/using-custom-cursors-in-java.html

Goodluck



来源:https://stackoverflow.com/questions/4893911/java-swing-working-in-background-mouse-cursor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!