O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction

GUI programming has been in Java since JDK 1.0, via the API called Abstract Window Toolkit (AWT). This was a remarkable thing during those times, but it had its own limitations, a few of which are as follows: 

  • It had a limited set of components 
  • You couldn't create custom reusable components because AWT was using native components
  • The look and feel of the components couldn't be controlled and they took the look and feel of the host OS

Then, in Java 1.2, a new API for GUI development called Swing was introduced, which worked on the deficiencies of AWT by providing the following:

  • A richer components library.
  • Support for creating custom components.
  • Native look and feel and support for plugging in a different look and feel. Some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required