• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable Horizontal Scrolling Probs

 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I am having problems providing horizontal scrolling to a JTable. I want the client to see the cells in full so I have set a minimum width for each column, but the horizontal scroll bar will not show up, no matter how I size the frame. Any Suggestions?
Ed


 
Jason Steele
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you want the horiz. scroll bar to show up...use:
myTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);

 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that, Jason! It now scrolls perfectly in both directions.
Ed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic