Forse potresti valutare l'utilizzo di un CardLayout