[the saga of my re-enty into the GUI world continues...]

I need to set the row color for my subclass of JTable.
All the example code that I've discovered show how to
change the color of a *column*.

I thought it would be as easy as:

        x = get the TableCellRenderer for that row,col
        c = get the Component for that TableCellRenderer
        c.setForeground(Color.foo)
        c.setBackground(Color.bar)

But nope...  And I've tried Googling for examples, but nothing
useful.  Seems pretty obtuse just to change the color of
a row...

Any help out there is appreciated.

Frank G.
+======================================================================+
| Crossroads Technologies Inc, 55 Broad Street, 28th Fl, NYC, NY 10004 |
|  Enterprise Java Engineering                                         |
| Email: [EMAIL PROTECTED]         Web: www.CrossroadsTech.com |
| Voice: 212-482-5280 x229                 Fax: 212-482-5281           |
+======================================================================+


_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to