Java 教程是为 JDK 8 编写的。本页中描述的示例和实践未利用在后续版本中引入的改进。
Also known as The Swing Tutorial
This trail tells you how to create graphical user interfaces (GUIs) for applications and applets, using the Swing components. If you would like to incorporate JavaFX into your Swing application, please see Integrating JavaFX into Swing Applications.
Swing 入门is a quick start lesson. First it gives you a bit of background about Swing. Then it tells you how to compile and run programs that use Swing components.
使用 NetBeans IDE 学习 Swingis the fastest and easiest way to begin working with Swing. This lesson explores the NetBeans IDE's GUI builder, a powerful feature that lets you visually construct your Graphical User Interfaces.
使用 Swing 组件tells you how to use each of the Swing components buttons, tables, text components, and all the rest. It also tells you how to use borders and icons.
Swing 中的并发性discusses concurrency as it applies to Swing programming. Information on the event dispatch thread and the SwingWorker class are included.
使用其他 Swing 功能tells you how to use actions, timers, and the system tray; how to integrate with the desktop class, how to support assistive technologies, how to print tables and text, how to create a splash screen, and how to use modality in dialogs.
在容器中布置组件tells you how to choose a layout manager, how to use each of the layout manager classes the Java platform provides, how to use absolute positioning instead of a layout manager, and how to create your own layout manager.
修改外观和感觉tells you how to specify the look and feel of Swing components.
拖放和数据传输tells you what you need to know to implement data transfer in your application.
编写事件监听器tells you how to handle events in your programs.
执行自定义绘画gives you information on painting your own Swing components. It discusses painting issues specific to Swing components, provides an overview of painting concepts, and has examples of custom components that paint themselves.
Although this is the main trail for learning about GUIs, it isn't the only trail with UI-related information.