Add maximumSize to scrollPane for historyPanel