• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable within JScrollPane  RSS feed

 
Bob Green
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTable within a JScrollPane and I don't know how to make the table size matches the size of JScrollPane or vice versa. I just want to make sure that I don't have extra spaces in the scroll pane when the table is small. Pls. help.

Thanks in advance.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a LayoutManager?
 
Bob Green
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, I am.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!