I am trying to use a ListFieldCallback to do some interesting text colouring (multiple colours in a single row).
One thing I can't seem to figure out is when the currently requested row is the highlighted row. Calling getSelectedIndex() doesn't help at all. Can anybody suggest a better idea?
ex:
Code:
public void drawListRow(ListField lf,Graphics g,int i,int y,int w)
{
if ( getSelectedIndex() != i ) {
g.setColor( Color.BLUE );
}
graphics.drawText( "hi", 0, y );
}