像Java的GUI语法那样的SwingBuilder吗? [英] SwingBuilder like GUI syntax for Java?

查看:111
本文介绍了像Java的GUI语法那样的SwingBuilder吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个库,可以像 SwingBuilder一样编写基于Swing的GUI a>在Groovy中?

Is there a library that makes it possible to write Swing based GUIs similar to the manner done by SwingBuilder in Groovy?

我希望在不将Groovy或另一种完整的编程语言嵌入Java的情况下开发Java GUI应用程序,并且我发现标准Java语法相当繁琐.

I am hoping to develop a Java GUI application without embedding Groovy or another complete programming language in Java, and I find the standard Java syntax rather tedious.

推荐答案

我曾经沿着这条路走了,然后发现 MiGLayout -除非我使用拆分窗格,否则通常可以将我的每个视图放在一个面板中,而麻烦最少.有一点学习曲线,但是一旦您过了顶峰,您几乎可以在短时间内敲出一个看起来非常漂亮的GUI.

I went down this path at one point, then I found MiGLayout - unless I'm using a split pane, I can generally lay out each of my views in a single panel, with a minimum of hassle. There is a tad of a learning curve, but once you are over the hump, you can knock out a really nice looking GUI in almost no time.

对于许多设计而言,将嵌套面板嵌套在其他面板中的整个范例并不干净-您最终会与布局管理器发生冲突.

The whole paradigm of nesting panels inside other panels isn't clean for a lot of designs - you wind up fighting the layout manager.

这篇关于像Java的GUI语法那样的SwingBuilder吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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