English 中文(简体)
Java - Building GUI for application
原标题:Java - Building GUI for application

多年来,我撰写了大量的 Java申请,但绝大多数是简单的指挥线方案,只有几百条线和(多数)几个班。

我的问题是:

How do I now design/code an interface to this application?? Where do I start? I mean are there any tutorials/resources which describe the steps involved? I know Swing exists, but where do you start, and is it the only option?

任何帮助/帮助

问题回答

Java富的客户全球倡议工具包基本是:

  • AWT Sun s Abstract Window Toolkit was the original component kit for making GUIs, a toolkit based around using native components. AWT still contains the core of very important parts of J2SE GUIs such as Graphics/Color/Java 2D, Image & BufferedImage, printing, D n D..
  • Swing The current, main-stream desktop app. component toolkit. Swing generates the components internally, and allows setting a Pluggable Look and Feel to the GUI. Swing offers components & functionality not available in AWT such as JTable, JTree, support for formatted documents (e.g. RTF & simple HTML) in Swing components.. For more information see things that Swing provides beyond AWT.
  • Java FX 2 Intended as an (eventual) replacement to Swing, AFAIU.
  • SWT is another choice, not written by Oracle, uses natives. I would not recommend it for someone learning rich client programming, since it is a lot easier to get answers in relation to Swing.

您必须学习全球协调倡议的标语java.awt<>>及其子包以及(扩展的标语)<代码>javax.swing及其子包。 页: 1 The Java Tutorial.

无,Swing不是唯一的选择,而是应该开始的。 滚动是<编码>java.awt<>/code>中一些GUI物体的“新改进”版本。 多数航标在我们的AWT反部分之外,完全是新的。 Swing和AWT都属于Java AP的核心部分,因此最好从AVD与你有联系的理论开始(





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签