Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2009, 12:24 AM
Member
 
Join Date: Mar 2009
Posts: 3
Rep Power: 0
tiro is on a distinguished road
Default Map in TableModel
I'm trying to get the values of the currency and amount of JTableModel and then show the new values in JDialog which also has a table with two columns for key and value but there is no thing as I want. I need help
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 07-01-2009, 08:53 AM
Steve11235's Avatar
Senior Member
 
Join Date: Dec 2008
Posts: 972
Rep Power: 2
Steve11235 is on a distinguished road
Default
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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set focus on particular cell in a JTable when using TableModel sridhar_negi AWT / Swing 0 11-14-2008 05:14 AM
Swing problem: JTable/TableModel Levish2002 AWT / Swing 2 08-24-2008 09:53 PM
Create different instance of a tablemodel Bill AWT / Swing 6 03-27-2008 04:49 PM


All times are GMT +2. The time now is 03:46 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org