I have a file with a JScrollBar and a JPanel inside with boxlayout.
In another file I have a JPanel (also BoxLayout) with a JList inside (without JScrollPane - only the list). The list can grow as much as it needs.
The problem is when I add the 2nd file in the first file JPanel, it just does not resize to fit the content. The JList is just cutted like the next image.
What can I do to fix it?