Java 的可扩展 GUI 框架

发布于 2024-07-26 19:17:32 字数 187 浏览 3 评论 0原文

我是 swing 的粉丝,发现除了可扩展的 GUI 之外,它已经完成了我需要的一切。 我可以通过编程方式使小部件可扩展,但如果我想插入可选功能,动态生成每个要更改的组件可能会非常乏味。

我花了很短的时间编写 Firefox 插件,这让我对 Overlays 的想法非常感兴趣。

Java 是否存在具有类似概念的东西?

I'm a fan of swing and find it has done everything I need except for extensible GUIs. I can make small parts extensible programmatically, but if I want to plug in an optional feature it can be quite tedious to dynamically generate every component being altered.

The short period I spent writing a Firefox plug in got me very interested in the idea of Overlays.

Does there exist anything for Java with a similar concept?

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

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

发布评论

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

评论(4

香橙ぽ 2024-08-02 19:17:33

当然,如果能更准确地了解“可扩展”GUI 的含义,那就太好了。

在我的工作中,JXLayer 很好地满足了扩展 Swing 组件的大部分需求。 例如,实现验证通知层、带有进度指示的阻塞等。

It would of course be good to know more precisely what do you mean by "extensible" GUI.

In my work most needs for extending Swing components are nicely fulfilled by JXLayer. For example, things like implementing validation notification layer, blocking with progress indication etc.

↙厌世 2024-08-02 19:17:33

“插入”

是指插件吗?

看看这里:
http://karussell.wordpress .com/2009/09/16/plugable-swing-a-hello-world-osgi-example/

使用 NetBeans 查找类 (openide) 和 JDK6 中包含的 ServiceLoader 也可以实现类似的效果:
http://weblogs.java。 net/blog/2008/08/12/simple-dependency-injection-serviceloader-jdk-6

对于可扩展的 GUI 框架,请查看此处:
http://karussell.wordpress .com/2009/10/08/java-application-frameworks-not-only-client-side/

更新:现在使用 griffon 你也可以这样做

"to plug in"

Do you mean plugins?

Take a look here:
http://karussell.wordpress.com/2009/09/16/plugable-swing-a-hello-world-osgi-example/

similar things are possible with NetBeans lookup class (openide) and the ServiceLoader included in JDK6:
http://weblogs.java.net/blog/2008/08/12/simple-dependency-injection-serviceloader-jdk-6

For an extensible GUI framework look here:
http://karussell.wordpress.com/2009/10/08/java-application-frameworks-not-only-client-side/

Update: Now with griffon you can do this too

乖乖 2024-08-02 19:17:33

我们已经对可以将 xml 文档转换为 java GUI 的项目进行了多次尝试。

JavaFX 是理想的选择,但这需要 1.6u10 或更高版本。

There have been multiple attempts at projects that can convert an xml document into a java GUI.

JavaFX would be ideal, but that requires 1.6u10 or better.

静若繁花 2024-08-02 19:17:33

看一下 SwingBean 框架。

这很酷,因为它允许您通过 xml 文件生成用户界面。

这是链接:http://swingbean.sourceforge.net/

Take a look at the SwingBean framework.

It's kind of cool, because it allows you to generate user interfaces through xml files.

Here is the link: http://swingbean.sourceforge.net/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文