Added cardlayout code. Dam JFilechooser code disappeared :(