Two components in a JScrollPane
Say I have two components in a panel in a scroll pane. The top one is a button and the one below is a JList. Now they can both scroll horizontally, but the JList won't scroll down vertically because the button is there too...
Open iTunes or some music manager. You can scroll sideways to see more columns, but when you scroll vertically, the column title button things stay where they are.
Please can someone help me to figure this out, otherwise I have a bit of a problem.
Can I maybe add a vertical JScrollBar to only the JList and then a horizontal one to the panel containing the JList and the button? I've never used JScrollBars by themselves, but I'll have a look into that too.