Results 1 to 2 of 2
Thread: Map in TableModel
- 06-22-2009, 11:24 PM #1Member
- Join Date
- Mar 2009
- Rep Power
- 07-01-2009, 07:53 AM #2
TableModel is an interface, which means you can fill in the methods however you want. There are *no* limitations as to how you you store the data; you choose how to provide the data to each cell in the table.
DefaultTableModel is a simple implementation of TableModel that is fairly easy to use.
Look at the API for each component and see how data can be retrieved. But note: JTable requires several different components to function; TableModel is just one of them. Each has a default implementation that will create a working table, but you should at least be aware of what the components are. Look at Sun's Java Tutorial home page and go to the Swing Tutorial. It will walk you through the components of JTable.
- By sridhar_negi in forum AWT / SwingReplies: 0Last Post: 11-14-2008, 04:14 AM
- By Levish2002 in forum AWT / SwingReplies: 2Last Post: 08-24-2008, 08:53 PM
- By Bill in forum AWT / SwingReplies: 6Last Post: 03-27-2008, 03:49 PM