Row Selection in Tables

My Swing GUI appliaction has a large table in it, and I'm using a custom Table Cell Renderer. One of my columns uses a widget I wrote myself that is identical to the "star rating" widget you see in iTunes. (In fact, you can basically think of this app as being iTunes-like in terms of its UI.) It's working pretty well: when I see an item I want to rate, I can click on the widget in a particular row, and it shows the appropriate number of stars, etc.

But here's the problem: this doesn't work if the row has already been selected. I can only modify the star widget on rows that are unselected.

Does anyone have an idea of how I could correct this problem?

Thanks very much.

[704 byte] By [gmaletica] at [2007-11-26 13:49:21]
# 1

> Does anyone have an idea of how I could correct this problem?

Given that we have very little information to go by, I'm guessing that you have a custom TableModel and you are not firing the TableCellUpdated() method when you change the data, so the table doesn't know it should repaint the cell.

camickra at 2007-7-8 1:25:48 > top of Java-index,Desktop,Core GUI APIs...