简体   繁体   English

Java摆动“在后台工作”鼠标光标

[英]Java swing “working in background” mouse cursor

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. 我知道WAIT_CURSOR,但我没有看到这样的事情。 Do I need to make a custom cursor to get the hourglass-pointer combo? 我是否需要制作自定义光标才能获得沙漏指针组合?

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 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 这是一个网站,向您展示如何构建自己的自定义光标: http//blog.codebeach.com/2008/02/using-custom-cursors-in-java.html

Goodluck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM