SE702:JavaTableWidget:Design

From Marks Wiki
Jump to navigation Jump to search
  • Write the widget to extend JComponent to allow it to be used in swing applications
    • This loses some of the functionality in JTable, but is more flexible
  • A table is merely a view (MVC). It should not store or manipulate data directly.
    • Hmmm it can be controller also - editable cells
  • Data should be stored in a table model (extends AbstractTableModel generally -> has to implement the TableModel interface somehow)