Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a JTable inside a JScrollPane that is set to AUTO_RESIZE_OFF. ( So that the JTable can be resized the way I want )

I have a problem when I want only the column beeing resized to grow and the rest of the Jtable to maintain it's width. I can't set the AUTO_RESIZE mode to anything because then it will just fit inside the view of the JScrollPane and I don't want that.

I want to maintain the current size of the Jtable / The vertical and horizontal scrollbar and resize a column making the other columns that are SUBSEQUENT to shrink or grow.

Is this possible. How can I do this?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic