This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 38045
    
  22
Please don't ask the same question twice.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Search problem when using html in DefaultTableCellRenderer
 
Similar Threads
Search problem when using html in DefaultTableCellRenderer
Problem with <h:commandButton>
JTable Trouble
Dynamic table generation in jsp
Tiles problem