This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display multi-lines in JTable

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like this
------------
a | b
-------------
c | d
c | d
-------------

I'm not sure if there are some components like this have created yet. If can't find one. What should do to implement this? Relace the table cell render and editor to JTextArea?

Why I need this is because if the content in a cell is too long, the information will be cut off.

Thank you in advance.
[ June 21, 2006: Message edited by: Loius Wan ]
 
Michael Dunn
Ranch Hand
Posts: 4632
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I've found a better one.


http://www.roseindia.net/javatutorials/JTable_in_JDK.shtml

[ June 22, 2006: Message edited by: Loius Wan ]
[ June 26, 2006: Message edited by: Loius Wan ]
 
See where your hand is? Not there. It's next to this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!