本文介绍了构建Java Swing GUI的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我一直在使用Netbeans Swing GUI生成功能为我的java应用程序构建GUI。

Till now, I had been using Netbeans Swing GUI generation feature to build GUI for my java applications.

现在我已开始使用Eclipse进行项目并丢弃Netbeans的。因此,除了手动编写GUI的所有代码之外,还有哪些方法可以快速以更好的方式构建GUI。

Now I have started using Eclipse for my projects and have dropped Netbeans. So apart from coding manually all the code for GUI, what are the other ways with which I can build GUI quickly and in a much better way.

推荐答案

您可以手动编码,但使用足够的GroovyBuilders()比使用普通的java更快,但你需要在应用程序中嵌入 Groovy lib ..

You can keep coding it manually but using GroovyBuilders (link) that are enough faster than using plain java but you will need to embed Groovy lib inside your application..

否则存在一个名为 MIG Layout ,效果很好(比普通的gui建筑更实用)..

otherwise there exists a layout manager, called MIG Layout, that works quite well (it's much more practical that normal gui building)..

我还使用了一个名为的工具来构建一些简单的应用程序,但是使用可视化方法你会得到同样令人讨厌的东西:保持接口和后端同步,同时考虑视觉对象和v之间的绑定 ariables name ..

I also used a tool called JVider to build some simple applications, but using a visual approach you get always the same nasty thing: keeping interface and backend synchronized, considering also the "bindings" between visual objects and variables name..

这篇关于构建Java Swing GUI的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 03:50