Click to See Complete Forum and Search --> : Cells in JTable that span several lines
hitai
July 9th, 2009, 03:32 AM
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?
dlorde
July 9th, 2009, 03:48 AM
You might find this (http://www.crionics.com/products/opensource/faq/swing_ex/JTableExamples4.html) 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
hitai
July 9th, 2009, 09:52 PM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.