Java Swing and AWT Tutorials
- Fundamentals of
JFC/Swing
The Java Developer Connection (JDC) presents a Short Course on the Fundamentals of Java Foundation Classes (JFC)/Swing written by Java Software licensee, the MageLang Institute. A leading provider of Java technology training, MageLang has contributed regularly to the JDC since 1996. The MageLang Institute, since its founding in 1995, has been dedicated to promoting the growth of the Java technology community by providing excellent education and acting as an independent resource. To find out more about MageLang's Java technology training, visit the MageLang web site.
- Fundamentals of JFC Swing: Part 2
The goal of this two-part course is to help you understand the Swing component set and the advantages it gives you over the Abstract Window Toolkit (AWT) used in JDK 1.1. You will learn about other upgraded capabilities, including Swing controls, layout managers, and events, as well as new capabilities not readily available in AWT. This is Part II of a two-part course on the Fundamentals of Swing. Part I provided a general introduction to Swing. After you complete Part II, you will be able to use this component set anywhere you previously used AWT components.
- Effective Layout Management
The goal of this course is to help you effectively use layout managers with AWT and Java Foundation Classes (JFC) Project Swing components. You will learn how to build complex screens with the help of one or multiple layout managers. Because of the promise of Write Once, Run Anywhere (WORA) with the Java platform, development of Graphical User Interfaces (GUI) with the Abstract Window Toolkit (AWT) is not straightforward. Unlike when creating user interfaces for one language on one platform, you cannot just position components with absolute sizes and coordinates. You must take into account the fact that components are different sizes on different operating systems.
- Quick Swing Tutorial for AWT users
Swing" refers to the new library of GUI controls (buttons, sliders, checkboxes, etc.) that replaces the somewhat weak and inflexible AWT controls. This tutorial is aimed at getting Java programmers who already know the AWT going as quickly as possible in Swing.This tutorial presents a quick introduction to the basics of Java2D and the use of the Graphics2D class in Java 1.2. It is not a tutorial on general Java programming, a tutorial on all of Java 1.2, or even a tutorial on programming with Swing or JFC.
- Creating a GUI with JFC/Swing
This trail tells you how to create graphical user interfaces (GUIs) for applications and applets, using the Swing components. This lesson gives you a brief introduction to using the Java Foundation Classes (JFC) Swing packages. After telling you about JFC and Swing, it helps you get the necessary software and walks you through how to compile and run a program that uses the Swing packages. Next, it shows you how to run programs using Java Web Start.
- What
is Swing
With the release of the Java 2 platform (and the Java Development Kit 1.2), developers now have access to a wider range of graphical user interface components, and greater flexibility and control over their appearance. The previous graphics toolkit, the Abstract Windowing Toolkit (AWT), was sufficient for simple applets, but was a poor substitute for a commercial quality suite of components. As part of the Java Foundation Classes (JFC), the Swing library of components rectifies the shortcomings of AWT, and gives developers the ability to create professional graphical user interfaces that will be the envy of developers using other languages like Visual Basic or Delphi.
- AWT/Swing
Tutorial
This tutorial gives a brief overview of working with AWT and Swing. This is by no means a comprehensive overview of both widget sets, and is restricted to elements used in applets. The reader is encouraged to explore other components of the two widget sets, especially for Swing. As this tutorial is restricted to applets, frames and widgets that are attached to frames (such as menus and dialog boxes) are not covered. A common applet example is used for both the AWT and Swing portions. This is an applet that is used to place either a "For Sale" or a "Wanted" advertisment for a car.
- Basic User Interface Programming using the AWT and the JFC
This tutorial discusses using the AWT (Abstract Window Toolkit) of Java to perform platform-independent GUI programming.
It makes the following assumptions: Exposure to Java
Exposure to OO programming
Familiarity with a GUI library such as Motif
Java provides a set of user interface components
The set is the same across Unix, Windows and the Macintosh
The user interface components can be used for applets and for applications
The set allows cross-platform applications and applets to be built
- AWT
Fundamentals
The Java Developer Connection (JDC) presents a Short Course written by Java Software licensee jGuru (formerly named the MageLang Institute). A leading-edge Java developer community, jGuru has contributed regularly to the JDC since 1996. This Short Course introduces the Abstract Window Toolkit (AWT) technology. jGuru has been dedicated to promoting the growth of the Java technology community through evangelism, education, and software since 1995. You can find out more about their activities, including community-driven FAQs and online learning, at jGuru.com.
- What Is the AWT
AWT stands for Abstract Window Toolkit. The AWT is part of the Java Foundation Classes (JFC) -- the standard API for providing graphical user interfaces (GUIs) for Java programs. From The Java Technology Tutorial, explains the new event model and gives example code for 1.1 event handlers. Includes handy tables that map components to the events they can generate and that show all the listener interfaces, their corresponding adapters, and the methods they contain. Both tables link to where you can find more information. Also describes how and when to avoid code clutter by using adapters and inner classes.