From e8bb7b9b66a3a614b223af7fe897be8a278ae537 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Mon, 29 Feb 2016 03:03:34 +0000 Subject: [PATCH] Disabled auto-scrolling on library item expansion. --- src/main/java/musicplayer/PlayerGUI.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/musicplayer/PlayerGUI.java b/src/main/java/musicplayer/PlayerGUI.java index ee6f0fd..a6ce247 100644 --- a/src/main/java/musicplayer/PlayerGUI.java +++ b/src/main/java/musicplayer/PlayerGUI.java @@ -298,6 +298,7 @@ public class PlayerGUI implements PlayerCallbackInterface, LibraryCallbackInterf libraryView.setToggleClickCount(1); libraryView.setCellRenderer(new LibraryTreeCellRenderer()); libraryView.addMouseListener(new LibraryMouseAdapter()); + libraryView.setScrollsOnExpand(false); return libraryView; }