Java Swing and AWT Tutorials

Swing is a GUI toolkit for Java. It is one part of the Java Foundation Classes ( JFC ). Swing includes graphical user interface ( GUI ) widgets such as text boxes, buttons, split - panes, and tables.

Swing widgets look after more sophisticated GUI components than the earlier Abstract Window Toolkit. Since they are written importance pure Java, they run the same on faultless platforms, unlike the AWT which is tied to the underlying platform's windowing system. Swing supports pluggable look and feel – not by using the native platform's facilities, but by roughly emulating them. This means you can predispose any supported look and feel on any platform. The disadvantage of lightweight components is slower execution. The advantage is allying behavior on all platforms.


History
The Internet Foundation Classes ( IFC ) were a graphics library for Java originally developed by Netscape Communications Corporation and first released on December 16, 1996. IFC was essentially a clone of NeXT Software's Objective - C OpenStep APIs to the Java language. After NeXT was acquired by Star Computer in December 1996, OpenStep was renamed Cocoa. It continues today as a set of application development frameworks for Apple's MacOS X operating system.

On April 2, 1997, Sun Microsystems and Netscape Communications Corporation announced their intention to incorporate IFC with other technologies to pattern the Java Foundation Classes. Unfortunately, as described in The Sun Further Sets, inexperienced engineers at Sun discarded virtually all of the code from IFC, and a kindred framework that had been developed at Sun subsidiary Lighthouse Design. As a result, the release of Sun's successor to AWT was delayed by more then eighteen months, and when finally released it was met with widespread criticism and lack of interest. Although Swing has improved in recent years, it is still widely regarded as being difficult to use, in large part because of the decision to abandon the superior technologies derived from NeXT's innovations, and begin again virtually from scratch.

Swing introduced a mechanism that allowed the keeping watch and feel of every component in an application to be altered forfeit making substantial changes to the application code. The introduction of support for a pluggable look and feel allowed Swing components to emulate the appearance of native components while still retaining the benefits of platform independence. This feature also makes it easy to have an individual application's appearance look very different from other native programs.

Originally distributed as a separately downloadable library, Swing has been included as part of the Java Standard Edition since finis 1. 2. The Swing classes are contained in the javax. swing package hierarchy.



Java Swing and AWT Tutorials Links


Fundamentals of JFC/Swing: Part I
URL: http://java.sun.com/developer/onlineTraining/GUI/Swing1/
The goal of this two-part course is to help you understand Swing 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.

Fundamentals of JFC Swing: Part 2
URL: http://java.sun.com/developer/onlineTraining/GUI/Swing2/
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
URL: http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/
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. (download or online)

Quick Swing Tutorial for AWT users
URL: http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/
This tutorial is aimed at getting Java programmers who already know the AWT going as quickly as possible in Swing.

Programming user interfaces with the JFC
URL: http://pandonia.canberra.edu.au/java/swingtut/tut2.html
This tutorial looks at GUI programming using the new JFC/Swing classes.

Creating a GUI with JFC/Swing
URL: http://java.sun.com/docs/books/tutorial/uiswing/index.html
Sun's Swing tutorial.

Fundamentals of JFC/Swing, Part I
URL: http://developer.java.sun.com/developer/onlineTraining/GUI/Swing1/index.html
A short course in Swing from Sun.

Fundamentals of JFC/Swing, Part II
URL:http://developer.java.sun.com/developer/onlineTraining/GUI/Swing2/shortcourse.html A short course in Swing from Sun.

Get your GUI Swinging!
URL: http://www.javacoffeebreak.com/tutorials/swing/index.html
Learn how to use Swing in your applications, to add that professional touch.

AWT / Swing Tutorial
URL: Click Here
This tutorial gives a brief overview of working with AWT and Swing.

Swing Book
URL: http://javafaq.nu/java/free-swing-book/index.shtml
Free swing book.

AWT Fundamentals
URL: http://java.sun.com/developer/onlineTraining/awt/
The AWT is the window to the world for Java technology. This module will teach you how to use the Abstract Window Toolkit (AWT) to allow your programs to create a Graphical User Interface (GUI) to interact with your users. With this tutorial, you will learn how to use components or "widgets" (windows, buttons, checkboxes, scrollbars, menus, and so forth) to display your graphical interface and how to work with events to respond to input from the user

Basic User Interface Programming using the AWT and the JFC
URL: http://jan.netcomp.monash.edu.au/java/swingtut/tut1.html
This tutorial discusses using AWT and Swing to perform platform-independent GUI programming.

AWT Fundamentals
URL: http://developer.java.sun.com/developer/onlineTraining/awt/index.html
This Short Course introduces the Abstract Window Toolkit (AWT) technology.

THE AWT IN 1.0 AND 1.1
URL: http://java.sun.com/products/jdk/awt/
Sun's Abstract Window Toolkit site.

Share this

Related Posts

There was an error in this gadget