如何在 Java 桌面应用程序中使用 Windows 7 跳转列表?
正如标题所示,我们有一个 Java (Swing) 桌面应用程序,并且我们希望能够对跳转列表(在新的 Windows 7 任务栏中)进行一些基本访问。
特别是,我们希望能够向跳转列表添加一些“用户任务”——能够启动应用程序中的其他模块,也许关闭所有正在运行的模块等。
我知道我们可以使用JNI 或 JNA 以及 C API 此处介绍,但这是我们最后的选择。我希望可能有一种更简单的方法——Sun 已经实现的方法,或者可能是第三方库或其他方法。
谷歌到目前为止没有任何帮助。还有其他人有什么想法吗?
As the title suggests, we have a Java (Swing) desktop application, and we'd like to be able to have some basic access to the Jump Lists (in the new Windows 7 taskbar).
In particular, we'd like to be able to add some "user tasks" to the jump list--the ability to start other modules in our application, maybe to close all running modules, etc.
I know that we could do this using JNI or JNA and the C API described here, but that is our option of last resort. I'm hoping that there might be an easier way--something that Sun has already implemented, or maybe a third party library or something.
Google is no help so far. Anyone else have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个 Java 库为 Java 提供了新的 Windows 7 功能。它被称为 J7Goodies,由 Strix 代码。您可以用它创建自己的跳转列表。当然它也支持“用户任务”。
There is a Java library providing the new Windows 7 features for Java. It's called J7Goodies by Strix Code. You can create your own jump lists with it. Of course it supports "users tasks" too.
这会破坏与其他系统的兼容性,因此 Sun 几乎肯定不会这样做。
有一些桌面/工具栏集成库可以为您进行 jni 调用,您可能会寻找已针对 Windows 7 更新的库之一,但如果您打算使用单平台,为什么不使用 C# ? (并不是说我是 Java 的粉丝,我是 100% Java,但如果你已经破坏了兼容性,你可能会考虑一路走下去,只是为了方便编程)
This would break compatibility with other systems so Sun almost certainly won't do it.
There are a handful of desktop/toolbar integration libraries out there that make the jni calls for you, you might look for one of those that has been updated for windows 7, but if you are going to go single-platform, why not use C#? (Not that I'm a fan, I'm 100% Java, but if you're already breaking compatibility you might consider going all the way just for ease of programming)