SE702:JavaTableWidget:Design

From Marks Wiki
Revision as of 05:27, 3 November 2008 by Mark (Sọ̀rọ̀ | contribs) (6 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)