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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help - text wrap across JTable columns

Status
Not open for further replies.

7988

Programmer
Dec 13, 2002
1
IN
I am using a JTable and I need the text in the columns to wrap across columns,like the default behaviour of Excel.(horizontal wrap)

I am using the jtable to display an image and a text alongside.The text along the image should wrap across the columns.

Presently I am using a table cell renderer

public class ColoredTableCellRenderer extends DefaultTableCellRenderer
{

setText()
setIcon()

Currently for longer texts the text gets truncated. I would like the text to wrap across the columns like in excel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top