i have a requirement where my user enter a long description about a product or tender , but when i display that in a jtable then only half part is displayed and rest is shown in this way ....
can you suggest me a alternative where i can show this description in full details the way my user have entered it ?
I suggest attaching a JPopupMenu to the table cell containing the description.
The popup menu would have a "Show All" item.
Choosing that item would display a dialog window with a scrollable JTextArea displaying the entire description.
Also note that if you try the tooltip option that Riaan suggested, I suggest you use HTML to format the tooltip text because you may end up with a tooltip that stretches wider than the screen which would result in still not being able to view the entire description.
(Speaking from experience :-)
Otherwise if you want to see the entire text you need to change the width of the column. However I would only use this approach when you have a reasonable maximum size, say 30-50 characters. If you are going to enter multiple sentences then you need another approach. the Table Column Adjuster can do the column resizing automatically.