grindstonegirl
Technical User
Hi
I have a JTable and i want to change the colors of the rows dynamically. The colors need to correspond to the first letter of the string in the cell. When the string changes, the color also needs to change. I looked up in the java sun tutorial, but i am having some trouble figuring how to get it to work when the string is changed. I know that i have to specify renderers, but i am not sure exactly how to this in my case. thanks for any help you can give.
I have a JTable and i want to change the colors of the rows dynamically. The colors need to correspond to the first letter of the string in the cell. When the string changes, the color also needs to change. I looked up in the java sun tutorial, but i am having some trouble figuring how to get it to work when the string is changed. I know that i have to specify renderers, but i am not sure exactly how to this in my case. thanks for any help you can give.