HI you can use the setText() method of the TableItem. it can take an array and it knows to place the data correctlly. for example:
now, to edit , you need to edit the line( the row) so I guess you keep your information in some kind of a ArrayList ( in my example I only enterd one row('array') to the table, you can add as many as you want ofcourse ) so what you could do, is use the " table.removeAll() " method to earase the table , and then restart it with your fixed data . Hope I was helpfull, if not, ask again. Dave
Hi Dave, Do you know how to set any property of a cell ? you put the texts in an array then you set the array in the table. But, how to set the foreground of a specific cell and not the entire row, for example ?
SCJP 1.4 / 5.0 - SCBCD 1.3 - SCWCD 1.4 - IBM 484
posted 14 years ago
Yup, no prob the TableItem has a few methods- setText , setBackground. If you want to change a specific box, use the one with the index :
hope I helped! if not, ask again and I'll answer you(if I can) tomorrow morning. Dave