Forums Register Login

How to display multi-lines in JTable

+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
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 ]
I'm so happy! And I wish to make this tiny ad happy too:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1650 times.
Similar Threads
Doubt in Overriding Static Method....?
JTable Spread Sheet
Thread Question
Parsing data out of an XML document
How to solve this problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:59:35.