使用 webstart 在 Mac 上的全屏 Java 应用程序中隐藏光标

发布于 2024-12-07 01:21:38 字数 393 浏览 2 评论 0原文

我有一个全屏 Java 应用程序,需要在 Mac 上隐藏光标。 我已经按照此处和其他地方的说明创建了透明光标,它可以工作 在 Windows 上很好。它在 Mac 上不起作用。我尝试过两个系统命令 和一个本地命令来使用它,但只有当我在本地运行它时才有效 在我自己的电脑上。当我编译它并使用 webstart 将其上传到服务器时, 然后下载并运行它,它不再起作用。

我尝试简单地将光标更改为默认光标之一,并且 启动时也不起作用。不可见光标和默认光标都可以 一旦我将光标移动到屏幕顶部就可以工作,但我需要它 立即看不见。我已将 setUndercorated 设置为 true。

我到处搜索并找到了适用于 Windows 的答案,或者适用于 Windows 的答案 我在 Mac 上本地运行,但下载应用程序后不起作用 并在任何 Mac 上运行。

I have a fullscreen Java application in which I need to hide the cursor on a Mac.
I've created the transparent cursor as instructed here and elsewhere, which works
fine on Windows. It does not work on the Mac. I've tried a both a system command
and a native command to get ride of it, but that only works when I run it locally
on my own computer. When I compile it and upload it to a server using webstart,
then download it and run it, it no long works.

I've attempted simply changing the cursor to one of the default cursers, and that
does not work on startup either. Both the invisible cursor and default cursor do
work once I move the cursor up to the top of the screen, but I need it to be
invisible immediately. I have setUndercorated set to true.

I've searched everywhere and found answers that work on windows, or that work when
I run locally on my Mac, but nothing that works when the application is downloaded
and run on any Mac.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文