Hi ,

         I  have  extended the DefaultTableCellRenderer  to  have my own
TableCellRenderer. I am using this  Renderer for  all columns in a JTable . One
of my column  has a datefield  which is to be formatted . So for this particular
column  I return a  JLabel from the getTableCellRendererComponent() function of
the renderer else i just return a component ( which I get from
super.getTableCellRendererComponent() with a change in the foreground color of
the component ).

        Now  when  I select a row all the columns of that row get highlighted
except for the column having the datefield.If  I return a component instead of
a JLabel from my renederer for this column then everything works fine but  the
format of the datefield is lost  because I cannot set the text of a component.

        Any suggestions in this regard.

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

Reply via email to