简体   繁体   中英

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

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.

you can write something like this ,

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



         },

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM