"Rajan", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements. Thanks.
In the DefaultCellRenderer this method public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) Gives both the row and column. Check the row and do what you would have for the column.
Joined: Jun 19, 2001
Hi Paul, I have to do it dynamically. How can i pass the row index so that i can check with the getTableCellRendererComponent method's row(int). Once after creating the table, according to certain creteria i have change the color of the corresponding row. Can help me in this issue. thanks Rajan
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com