wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Hiding text in JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Hiding text in JTable" Watch "Hiding text in JTable" New topic
Author

Hiding text in JTable

John Vorwald
Ranch Hand

Joined: Sep 26, 2010
Posts: 139
Hi,
I have a table listing some information including a color. The color is displayed by changing the background color of the table. The text describing the color is "hidden" by changing the text color to match the background. Is it possible to turn off the text display?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Use a customized TableCellRenderer that does not display the text.

I'll move this thread to our user interface forum.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
jQuery in Action, 2nd edition
 
subject: Hiding text in JTable
 
Similar Threads
jtable
How to change the colour of an JTable Cell dynamically
color alternate rows/TableModel
JTable help
JTable printing problem