O'Reilly logo

Beginning Java 8 APIs, Extensions and Libraries Swing, JavaFX, JavaScript, JDBC and Network Programming APIs by Kishori Sharan

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 2

image

Swing Components

In this chapter, you will learn

  • What Swing components are
  • Different types of Swing components
  • How to validate input in a text component
  • How to use menus and toolbars
  • How to edit tabular and hierarchical data using JTable and JTree components
  • How to use custom and standard dialogs
  • How to customize a component’s properties such as colors, borders, fonts, etc.
  • How to paint components and how to draw shapes
  • Immediate painting and double buffering

What Is a Swing Component?

Swing provides a huge set of components to build GUIs. In Java programs, a Swing component is an instance of the JComponent class. The JComponent class ...

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