背景活动光标在Swing [英] Background activity cursor in Swing

查看:167
本文介绍了背景活动光标在Swing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将组件上的光标设置为后台活动光标。像在窗口中用箭头和小沙漏的那个。

how can I set the Cursor on a Component to a "background activity" cursor. Like the one in Windows with the arrow and the small hourglass.

我发现是 Cursor.WAIT_CURSOR

我在C:\WINDOWS\ Cursors中找到了包含光标的文件:appstart.ani,我可以用这种方法吗? / p>

I found the file which contains the cursor: appstart.ani in C:\WINDOWS\Cursors can I use that somehow?

推荐答案

由于这是一个动画光标,它不是微不足道的显示。但好消息是,有一个教程:向Java GUI介绍动画游标

As this is an animated cursor, it's not trivial to display. But the good news is that there is a tutorial for it: Introduce Animated Cursors to Java GUIs

这篇关于背景活动光标在Swing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆