How to get the reference to the next card in CardLayout

Printable View