Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compressing column width in JTable increases row height

Status
Not open for further replies.

sprintst955

IS-IT--Management
Jun 16, 2004
8
US
When I compress the column width in my JTable the row height increases to accommodate the text being moved to the lower lines in a multi-line TableCellRenderer. If the column width is adjusted back, the row height never collapses back. Is there a way to have the row height decrease as the column width expands and the text moves back up on the above lines?
 
You can use html tag in the content of table cell but I dont know if it helps.
"<html>line1<br>line2</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top