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 Swing / AWT / SWT and the fly likes wordwrap_JTable 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 » Swing / AWT / SWT
Bookmark "wordwrap_JTable" Watch "wordwrap_JTable" New topic
Author

wordwrap_JTable

Lars Val
Greenhorn

Joined: Apr 02, 2004
Posts: 5
Does anyone know if it is possible to get JTable to wordwrap and display multiple lines of text within a singel cell?
sinc.
/lars
Eddie Vanda
Ranch Hand

Joined: Mar 18, 2003
Posts: 281
If you are using the standard cell renderer it extends JLabel which understands html. You can wrap your text between <html> and </html> tags and word wrap will be taken care of for you.


The nice thing about Standards is that there are so many to choose from!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wordwrap_JTable