- New CardLayout requires also preferredSize in addition to maximum and minimum sizes to expand/contract properly without leaving artifacts + also requires revalidation. - Remove entire container repaint to prevent unnecessary slowdown for no reason Signed-off-by: Tomas Slusny <slusnucky@gmail.com>