Home > OS >  JScrollPane "stretching" out the panel that I add to it
JScrollPane "stretching" out the panel that I add to it

Time:01-16

I have to make a scrollable list where I can add a panel with 3 labels many times. I kind of made it work but the first panels are stretched and occupy all the area of the JScrollPane and I can't figure out how to fix this, I tried changing layouts many times but still didn't manage to fix it. I want the added panel to occupy a fixed size but I can't figure this out. Example in this picture: enter image description here

  •  Tags:  
  • Related