O'Reilly logo

Just Java™ 2 by Peter van der Linden

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

Chapter 21. JFC and the Swing Package

  • Java Foundation Classes

  • All About Controls (JComponents)

  • Swing Threads—A Caution!

  • Swing Components

  • More About Swing Components

  • Further Reading

  • Exercises

  • Some Light Relief—The Bible Code

In Chapter 20, we saw that the basic idea behind Java GUI programs is that you perform the following actions:

  • Declare controls. You can subclass them to add to the behavior, but this is often unnecessary.

  • Implement an interface to get the event handler that responds to control activity.

  • Add the controls to a container. Again, subclassing is possible but frequently unnecessary.

Chapter 20 explained how to handle the events that controls generate. This chapter dives into the details of the controls themselves: ...

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