Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2008, 02:57 PM
Manfizy's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Germany
Posts: 165
Rep Power: 2
Manfizy is on a distinguished road
Send a message via Yahoo to Manfizy
Post Table model
Hi people,
Anyone with an idea on how to create table model with data tht is editable.
Please help
Thank you
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-07-2008, 06:39 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,513
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Can you explain more clearly what you are talking about table model?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-07-2008, 10:34 PM
Manfizy's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Germany
Posts: 165
Rep Power: 2
Manfizy is on a distinguished road
Send a message via Yahoo to Manfizy
Default
Originally Posted by Eranga View Post
Can you explain more clearly what you are talking about table model?
Ok.I want to create a table store my data in an array.I want to be able to update and change the data and at the same time perfom some calculations on it.
Is it clear now?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-07-2008, 11:13 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Are you talking about the JTable class? It uses a TableModel class for its data model.
The TableModel class has get and set methods.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-08-2008, 03:19 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,513
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Originally Posted by Manfizy View Post
Ok.I want to create a table store my data in an array.I want to be able to update and change the data and at the same time perfom some calculations on it.
Is it clear now?

So I think you are talking about JTable. To store/updating data on a JTable you have to use data model.

Did you read Java doc for JTable?

How to use Table
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
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
Data from a model class won't show up in the table ayampanggang AWT / Swing 3 11-27-2008 09:20 PM
thread model in java6 jvm fun_indra Threads and Synchronization 2 04-23-2008 07:19 PM
MVC Model (Example) JavaForums Java Blogs 0 02-15-2008 11:00 AM
MVC Model JavaForums Java Blogs 0 02-14-2008 02:30 PM
EJB, classes Model Felissa Enterprise JavaBeans 1 07-06-2007 04:17 PM


All times are GMT +2. The time now is 12:09 AM.



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