Originally posted by Darryl Burke:
Hi Dave
For fading you would want to gradually change the color in each cycle of a Timer. One relatively easy way to do this is by altering the alpha component of the color.
Might take some tweaking to get it right, so why don't you read up on javax.swing.Timer, JTable#prepareRenderer, java.awt.Color then try something and post a SSCCE if the result isn't exactly what you wanted it to be.
I've used the
Java TimingFramework and the SwingX project for fading so I'm not too concerned about that, it's more the actual JTable customization part that I'm more curious in.
In particular, I first thought about using a custom TableCellRenderer, but that doesn't appear to be a clean solution given that the TableCellRenderer renders based on the column type. In this case I need to render across all the columns.
In the SwingX project the developers there have come up with a "highlighter" for JTables which is what I'm currently working with (I've already posted some questions in the Swinglabs forum). I'm just curious what approaches others have used.
Thanks,
Dave