Added size limit for JList, to prevent OOM error