This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable column width Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable column width" Watch "JTable column width" New topic
Author

JTable column width

Rajeshwari Ramamurthi
Greenhorn

Joined: Jun 21, 2001
Posts: 28
Hi
I have a JTabel with 8 columns. I want to set the column width dynamically for each column to fit the biggest string(in lengthwise) of that column. Is it possible to calculate the width of each column, if I calculate the length of biggest string for each column.
Or is it possible to display all cell contents fully.

Thanks
Raji
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable column width
 
jQuery in Action, 3rd edition