New to Java? We'll help you get started with our revised beginner's tutorial, or our free online textbook.
|
Get the latest Java books |
|
h t t p : / /w w w . j a v a c o f f e e b r e a k . c
o m /
|
Menu Articles Using Java Applets Looking for Java resources? Check out the Java Coffee Break directory! |
Get your GUI Swinging!
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. The Swing API isn't a replacement for the AWT. Swing is designed to be used in conjunction with existing AWT components, and to complement it. Not only does Swing offer new components, but it also offers greater control over their appearance, and a customizable "look and feel" (L&F), that allows applications to swing from a "Java look and feel" to a "Windows look and feel" on-the-fly. Developers even have the ability to create their own L&F, for custom applications or games. Getting started with SwingDeveloping applications with Swing user-interfaces is actually quite easy. You can even convert your existing applications over to use the new Swing components. In this tutorial, we'll show how to get your applications swinging. |
||||
|