From e975ae6a5c3b70dd1cf2b1a02099cde2feb1698c Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Tue, 11 Mar 2014 23:54:36 -0700 Subject: [PATCH] Fixing scrollbar on history --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 996bf75d..756d86f5 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -162,7 +162,9 @@ public class MainWindow implements Runnable { historyListModel = new DefaultListModel(); historyList = new JList(historyListModel); 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"); historyButtonClear = new JButton("Clear"); historyButtonRerip = new JButton("Re-rip All");