Hello

I Created a Frame. On TOp of the Frame I had a Button "Change". Under That I had a Table with 10 row's with White Back Ground ( default renderer).

CASE1>>IF I Press Change button,

1)First 5 rows Should display with RED Color(i.e red BackGround)
2) Next 3 rows should display with Blue Color(i.e Blue BackGround)
3) Next 2 rows should display with Green Color(i.e Green BackGround)


CASE2>>If Again I press Change Button,

Again I should Get Original State. I.e With White BackGround.
(Default renderer)

How TO Switch case1 to case 2 or case2 to case1..Like above.......

Please give an example........

REGARDS
CHANDRA