1

I am using JScrollpane and adding buttons on it dynamically. JScrollpane does not allow use of layouts. I want to increase space vertically and horizontally between buttons.

Yogiraj
  • 31
  • 6

1 Answers1

1

Add JPanel to your JScrollPane, and change the layout of the JPanel. After that, you can build all your gui inside your JPanel without the limitation of JScrollPane.

Programmer
  • 701
  • 4
  • 11