Swing Overview


Before Swing, there was the Abstract Windowing Toolkit (AWT) used in JDK (now called SDK) 1.0, a rudimentary GUI library. When Java was just starting to gain momentum, my colleague, a GUI programmer, was struggling to build reliable screens, but AWT wasn't reliable at that time. It is now years and versions later, so Swing, the AWT replacement, has improved GUI performance, reliability, and functionality dramatically. Not only are there more components , but they work better with fewer problems. There are still issues (for example, repainting might be too slow), but Swing is production quality and now makes creating clean screens easy.

An interesting Swing feature is that the look and feel can be changed programmatically. With this feature, developers can ensure that applications have the appearance they want, regardless of the platforms they are running on. Also, developers can now add high-quality 2D graphics, text, and images to an application. This chapter helps you decide which components you need for your GUI. I tried to provide just enough information so that you'll use these components effectively. This chapter does not cover the Java Foundation Classes (JFC) or graphics in general (because you don't need to create 2D drawings for the project).



JavaT 2 Developer Exam CramT 2 (Exam CX-310-252A and CX-310-027)
JavaT 2 Developer Exam CramT 2 (Exam CX-310-252A and CX-310-027)
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 187

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net