After removing and adding your components to jpListCommentPane
, try calling jpListCommentPane.revalidate()
instead of jpListCommentPane.repaint()
, do this last, do it once. There should be no need to call jpListCommentPane.validate();
and especially from within a loop
revalidate
will instruct the container that it needs to perform a layout and update its contact hierarchy