I'm trying to set up a scroll bar for which you can always scroll. Here is what I have:
public static JScrollPane scrollList(){
JScrollPane scrollList = new JScrollPane(list);
scrollableList.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
return scrollList;
}
Problem is that I can only scroll if the list is long and I want to be able to scroll even if empty.