wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTable
 
Similar Threads
java redirection
How to detect data change in JTable
Windows/Mac screen resolution change
How to detect the end of file
preload select boxes with content