This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable column width  RSS feed

 
Rajeshwari Ramamurthi
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!