playlist.setGroupBy(ret.toString());
config.setString("playlists.groupBy", ret.toString());
}
}
int firstVisibleIndex = playlist.indexOf(firstVisibleTrack);
if (firstVisibleIndex != -1) {
Rectangle cellRect = table.getCellRect(firstVisibleIndex, 0, true);
Rectangle visibleRect = table.getVisibleRect();
cellRect.setSize(visibleRect.width, visibleRect.height);
table.scrollRectToVisible(cellRect);