The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Change the Renderer

Posted by sleek on April 16, 2001 at 5:38 PM

You need to override the column renderer and change the background or foreground color as you want and then set that custom renderer with the appropriate JTable object.


> Hi
> I want to display a string in the column of a table.This string is hardcoded and added to the column .But I want the String to be coloured.i.e say if the string is "?" then the ? should appear blue in colour.I believe there is no method for setting the colour of the String to Blue.Please help me out in this issue.
> Hoping for a quick reply.
> Thank You
> Saurabh Ganguly






Replies:
  • Thank You Saurabh Ganguly April 17, 2001 at 3:06 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us