hi!!! A Problem in JTable

HI,

I have a problem in JTable.I have a Jtable and a button named validate.My JTable first displays a set of rows and colums.if we name the colns as a,b and c. when i click the validate button i will take the values of a1 and b1 and do some validations. If it is in correct position then the row remains as it is else i will change the value of b1 to a1 position and vice versa. This happens in a loop till the end and the data vector of the table gets changed accordingly.Now the problem is suppose if there are 10 rows and the value changes in row 1,5,7 thn i need that rows alone to be colored while the button ends its action.Finally the JTable should be viewed as row 1,5,7 colored and others in their default color....

Please help me...

Message was edited by:

tis-is-hari

[809 byte] By [tis-is-haria] at [2007-10-3 8:45:41]
# 1
You will have to create your own Renderer or use a table like JXTable from swing labs that allows highlighting.
zadoka at 2007-7-15 3:54:36 > top of Java-index,Desktop,Core GUI APIs...