Hi guys,
Kinda glad I found a forum other than the one on Sun
Basically, I'm writing a little date-picker widget for part of an app I'm building:
When you click a cell in the table it goes green, as shown above. When you click a different cell it goes back to its default color as expected and the new cell goes green. However, if you click away from the entire table and onto something like a JButton all the cells just go back to their default colors, when what I'd like to happen is have the currently selected cell stay green (so it's visible while the user does other things).
Here's the renderer I wrote to do it. I can see *why* it doesn't work, however, I can't see an obvious solution right now
I tried storing the row and column numbers only when the cell is focused and the comparing to the current row and column number but that seemed to make previously selected cells highlight at the same time
Cheers,
Chris
[ January 14, 2007: Message edited by: Chris Corbyn ]