File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wordwrap_JTable

 
Lars Val
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 281
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic