Topics in this Chapter

  • Table Editing Overview

  • How the Editing Process Works

  • Using Buttons and Combo Boxes as Editors

  • Tabbing Between Editable Cells

All the tables that you have seen so far in this book have displayed static data. However, JTable allows the user to edit the table data if the underlying table model permits it. In this chapter, you'll see how to turn a read-only table into an editable one by using the editors that are installed by default in every table. You'll also see how to enhance your tables beyond the capabilities of the default editors by creating editors of your own and how to add useful mechanisms like the ability to use the tab key to move between cells while editing.

Overview of the Table Editing Mechanism ...

Get Core SWING advanced programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.