Hi, does somebody konws how in runtime execution to change the data values in a JTable, setValueAt works only if the change is in the same table , if i want to change the table values from another component ??
JTable data changes
Collapse
X
-
I don't get this question fully. To change the values in the table you need an instance of that table and then you can you can call the setValueAt method.Originally posted by renehvHi, does somebody konws how in runtime execution to change the data values in a JTable, setValueAt works only if the change is in the same table , if i want to change the table values from another component ??
I don't understand the "from another component" part. Perhaps if you could explain that part. -
Then at least you need a reference to that other component; that's all there is to it.Originally posted by renehvHi, does somebody konws how in runtime execution to change the data values in a JTable, setValueAt works only if the change is in the same table , if i want to change the table values from another component ??
If you don't have a reference to that other component you can't change other JTables.
kind regards,
JosComment
Comment