This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable " Watch "JTable " New topic
Author

JTable

nabi bux
Ranch Hand

Joined: Mar 14, 2005
Posts: 73
Hi
Please guide me how I detect data change in table
how i tablelistner to detect data change please give right Help
Abhijeet Vaidya
Greenhorn

Joined: Apr 16, 2007
Posts: 20
Hi,

You can implement table model to represent the table data. for that you need to create your own class which will extend AbstracTableModel. This customized tablemodel class can be passed to JTable constructor.

AbstractTableModel provides some methods like getValueAt(row, column) , setValueAt(object, row, column) etc. These methods will be called automatically when data is displayed/changed.

So you can write your own code to populate the data beans with the changed data in setValueAt().


--------------
Thanks,
Abhijeet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable
 
Similar Threads
How to detect the end of file
Windows/Mac screen resolution change
How to detect data change in JTable
preload select boxes with content
java redirection