permaculture playing cards*
The moose likes Beginning Java and the fly likes Search problem when using html in DefaultTableCellRenderer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Search problem when using html in DefaultTableCellRenderer " Watch "Search problem when using html in DefaultTableCellRenderer " New topic
Author

Search problem when using html in DefaultTableCellRenderer

zainu Mehmood
Ranch Hand

Joined: May 09, 2007
Posts: 45
i m a developing swing application,now In JTable i m suing a class that extends DefaultTableCellRenderer,in which i override getTableCellRendererComponent method, now in some case for formatting i m in need to add two value in a single cell but in diffrent lines
it works fine when i use code
like

rendVal = <html> + <font color=red> + value1 + </font> +<br> + value2+</html>


it works fine but when i search it just cant' search coz in backend html code is inserted ......can any one help me that how i can i format mean how i can i set two values in two line in a single cell and the also i can search please ...help me/.....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38481
    
  23
Please don't ask the same question twice.
 
Consider Paul's rocket mass heater.
 
subject: Search problem when using html in DefaultTableCellRenderer