Issue
I have a simple java swing app, built in netbeans. There's a JList in the app (inside a JScrollPane -- netbeans automatically creates this). I want the JList to grow and shrink when the user resizes the main window.
What do I have to do in netbeans to tie the horizontal and vertical size of the JList to the main window?
Solution
1) use proper LayoutManager, if I understood correctly BorderLayout.CENTER can do that
2) put JList to the JScrollPane
3) write code by your hands and edit your question with SSCCE that demonstrated your issue(s)
Answered By - mKorbel