1

I have a problem with JScrollPane when it is used with JTable. How can I make it such that the the scrollPane doesn't have a blank space below the JTable as can be seen in the picture

Also,I am currently using a JTabPane that contains 2 JPanels, one for the JScrollPane and one for the JList at the bottom. Is this the right way to do things?

Community
  • 1
  • 1
Laughy
  • 1,879
  • 5
  • 20
  • 22

1 Answers1

4

The method setPreferredScrollableViewportSize(), mentioned here, may be useful in this context.

Community
  • 1
  • 1
trashgod
  • 200,320
  • 28
  • 229
  • 974