user3405919
user3405919

Reputation: 53

JTable - Updating JTable

I made a table to bold data from Arraylist, but if I delete that data, I would want to the table update and debold the cells that were bolded from the Arraylist. How would I go about doing this? or close that instance of the class from another class

Upvotes: 0

Views: 187

Answers (2)

eric
eric

Reputation: 41

you can write something like this ,

 recordDeleted: function (event, data) {
            //something to debold the cells



         },

Upvotes: 0

camickr
camickr

Reputation: 324197

Changes to the data should be done in the TableModel. When you change the data you then invoke:

fireTableCellUpdated(...)

to notify the table of the change so it can repaint itself.

Upvotes: 2

Related Questions