|
-
July 9th, 2009, 03:32 AM
#1
Cells in JTable that span several lines
I have a JTable. In this JTable, there are cell where the text span several lines. I tried implementing a cell renderer which uses a JTextArea inside a JScrollPane. Of course this did not work.
How can I have a cell where the contents are scrollable?
-
July 9th, 2009, 03:48 AM
#2
Re: Cells in JTable that span several lines
You might find this helpful.
Whenever there is a hard job to be done I assign it to a lazy man; he is sure to find an easy way of doing it...
W. Chrysler
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
July 9th, 2009, 09:52 PM
#3
Re: Cells in JTable that span several lines
Ok, thanks for the tip. There wasn`t any explicit examples about making a scrollable cell but I think I get the idea of what I should do. Guess it`s about toying around with the UI
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|