Java GUI - 加速学习曲线 [英] Java GUIs - Accelerate the learning curve

查看:35
本文介绍了Java GUI - 加速学习曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在接下来的几周/几个月内,我将在这里用 Java 制作我的第一个严肃的 GUI.这将是我的第一个 Java 项目,我将在其中对编码实践和结果保持非常高的标准,因此我希望学习过程需要一些时间.

I'll be cranking out my first serious GUI in Java here over the next few weeks / months. This will be my first project in Java where I'll hold myself to a very high standard for coding practices and results, so I expect the learning process will take some time.

我想说我不是 Java 的初学者,但更像是一个中级用户 - 习惯了 API,在一些关键字上仍然很尴尬.我对 OOP 很满意,主要是通过 PHP 开发.

I'd say I'm not quite a beginner with Java, but more of an intermediate user - getting used to the API, still awkward on a few keywords. I'm comfortable with OOP, mainly through PHP development.

人们可以想到任何有助于加快学习曲线的技巧,例如不要那样做"或我希望有人告诉过我"这类事情.

Are there any tips people can think of to help accelerate the learning curve, i.e. "don't do THAT" or "I wish someone had told me this" type of things.

我在其他几个问题中遇到的第一个是空布局管理器 - 显然,这是粗制滥造的编程并导致问题.所以,这立即对我有所帮助,可能节省了一周时间,并在那里进行了一些重写.

The first one I came across in a few other questions was a null layout manager - apparently, that's shoddy programming and leads to trouble down the line. So, that helps me right away, probably saved a week and a few rewrites right there.

另一个是使用 NetBeans 在 Swing 中移动......但我还不能详细说明那个,需要一些研究.

Another was use NetBeans to move around in Swing...but I can't elaborate on that one yet, needs some research.

还有其他强烈推荐吗?

推荐答案

您可能想查看以下内容:

You might want to check out the following:

JGoodies 有著名的 FormLayout 和其他东西:http://www.jgoodies.com/

JGoodies has the famous FormLayout and other stuff: http://www.jgoodies.com/

SAF JSR-296 实现分支:http://kenai.com/projects/bsaf/页/首页

SAF JSR-296 implementation fork: http://kenai.com/projects/bsaf/pages/Home

Apache Commons,尤其是 lang,如果你还没有使用这些,你就走错了路:http://commons.apache.org/

Apache Commons, especially lang, if you don't use these already, you're on the wrong track: http://commons.apache.org/

现在不确定 SwingX,但似乎也值得一看:有人使用swingx"吗?Swing 的扩展?

Not sure about SwingX right now, but it seems to be worth looking at as well: Does anyone use the "swingx" extensions to Swing?

Java 实践,一般的好东西:http://www.javapractices.com

Java practices, general good stuff: http://www.javapractices.com

您绝对应该考虑使用现有的框架和工具.预先阅读大量内容以获取图片而不是自己钻研很多内容会有所帮助.除了桌面应用程序中的常见翻译库之外,几乎存在任何东西,例如用于常见操作(菜单项).

You should definitely look into using existing frameworks and tools. It helps to read a lot up front to get a picture instead of delving into writing much yourself. There's almost anything that exists except a library for common translations in desktop apps, e.g. for common actions (menu items).

啊,别忘了 SwingWorker...

Ah and don't forget the SwingWorker...

这篇关于Java GUI - 加速学习曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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