Java Swing Mac OSX首选项菜单 [英] Java Swing Mac OSX Preferences Menu

查看:78
本文介绍了Java Swing Mac OSX首选项菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将首选项"菜单添加到我的Java Swing应用程序中,这证明有点令人讨厌.

I'm trying to add the Preferences menu to my Java Swing application and it's proving a bit of a nause.

我已经阅读了很多关于此的帖子和文章,听起来很简单,但是...

I have read many posts and articles on this and it sounds easy but...

我在发现的示例中看到了对 com.apple.eawt.Application 的引用,但是当我尝试在 Eclipse Indigo 中将其导入时,出现错误:
访问限制:由于必需的库/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar

I see references to com.apple.eawt.Application in the examples I have found but when I try to import it in Eclipse Indigo I get an error:
Access restriction: The type Application is not accessible due to restriction on required library /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar

有什么想法吗?

我正在使用iMac OSX 10.6

I am working on an iMac OSX 10.6

推荐答案

您也许可以使用 answer .

这篇关于Java Swing Mac OSX首选项菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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