© Kishori Sharan 2018
Kishori SharanJava APIs, Extensions and Librarieshttps://doi.org/10.1007/978-1-4842-3546-1_2

2. Swing Components

Kishori Sharan1 
(1)
Montgomery, Alabama, USA
 
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 draw shapes

  • How to use immediate painting and double buffering

All example programs in this chapter are members of a jdojo.swing.component module, as declared in Listing 2-1.

// module-info.java

Get Java APIs, Extensions and Libraries: With JavaFX, JDBC, jmod, jlink, Networking, and the Process API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.