JComponent () { myResultPanel = new JPanel(new CardLayout()); myResultPanel.add(createComponentForEmptyRootCase(), CREATE_SOURCE_PANEL); myResultPanel.add(createComponentForChooseSources(), CHOOSE_SOURCE_PANEL); return myResultPanel; }