Friday, February 19, 2010

Minimizing TableModel maintenance (continued)

The idea of using enums as column definitions for Swing table models proved to be very valuable. It simplifies the model maintenance immensely. The support class described in previous post was enhanced and now has many more useful methods which are futher simplifying the work with such table model.
The class has following enhancements:
  • Support for cell selection
  • Support for assigning column renderers and editors
  • Conversion of column definitions to column indexes
  • Support for SwingX JXTable colum identifiers
So without any further due, here the code:


2 comments: