Results 1 to 2 of 2
Thread: Map in TableModel
- 06-22-2009, 11:24 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 3
- Rep Power
- 0
- 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.
Similar Threads
-
Set focus on particular cell in a JTable when using TableModel
By sridhar_negi in forum AWT / SwingReplies: 0Last Post: 11-14-2008, 04:14 AM -
Swing problem: JTable/TableModel
By Levish2002 in forum AWT / SwingReplies: 2Last Post: 08-24-2008, 08:53 PM -
Create different instance of a tablemodel
By Bill in forum AWT / SwingReplies: 6Last Post: 03-27-2008, 03:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks