Fixing scrollbar on history

This commit is contained in:
4pr0n 2014-03-11 23:54:36 -07:00
parent c8cfc57e5b
commit e975ae6a5c

View File

@ -162,7 +162,9 @@ public class MainWindow implements Runnable {
historyListModel = new DefaultListModel(); historyListModel = new DefaultListModel();
historyList = new JList(historyListModel); historyList = new JList(historyListModel);
historyList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); historyList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
historyListScroll = new JScrollPane(historyList); historyListScroll = new JScrollPane(historyList,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
historyButtonRemove = new JButton("Remove"); historyButtonRemove = new JButton("Remove");
historyButtonClear = new JButton("Clear"); historyButtonClear = new JButton("Clear");
historyButtonRerip = new JButton("Re-rip All"); historyButtonRerip = new JButton("Re-rip All");