如何使屏幕上的 Netbeans 预览与运行时匹配

发布于 2024-09-12 10:46:08 字数 390 浏览 0 评论 0原文

我正在尝试让运行时显示与预览相匹配,

这就是我正在查看的内容: http://i236.photobucket.com/albums/ff111/ DrivingTibNaked/Screenshot-1-5.png

如您所见,编辑器与运行时不匹配。当我使用表单预览按钮时,它以系统方式显示,但在运行时我得到了看起来很奇怪的 java 环境。

我尝试在创建窗口之前弄乱外观设置,但无法使系统外观正常工作。为什么所有的不一致?如何使用 netbeans 创建一个好的 Ubuntu 表单?

I am trying to get runtime display to match the preview

here is what I am looking at:
http://i236.photobucket.com/albums/ff111/DrivingTibNaked/Screenshot-1-5.png

As you can see the editor does not match runtime. It shows it the system way when I use the form preview button, but then at runtime I get the weird looking java environment.

I've tried messing with the look and feel settings before the window is created and I cannot get the system look-and-feel to work. Why all the inconsistancy? How can I create a good Ubuntu form with netbeans?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

为人所爱 2024-09-19 10:46:08
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文