---------------------------------------------------------public class ProMetaViewer extends JFrame { ... public ProMetaViewer() throws LoaderFactoryException { Container contentPane = getContentPane(); ... cardPanel = new JPanel(); cardPanel.setLayout(cardLayout); contentPane.add(cardPanel, BorderLayout.CENTER); PanelLoginAbfrage panelLoginAbfrage = new PanelLoginAbfrage( ??? ); cardPanel.add("PLA", panelLoginAbfrage); PanelLoginErfolgreich panelLoginErfolgreich = new PanelLoginErfolgreich(); cardPanel.add("PLE", panelLoginErfolgreich); ... } public void zeigePLE() { cardLayout.show(cardPanel,"PLE"); } --------------------------------------------------------- public class PanelLoginAbfrage extends JPanel implements ActionListener { ... public PanelLoginAbfrage(ProMetaViewer refPmViewer) throws LoaderFactoryException { ... plaButtonLogin = (JButton)panelLoginAbfrageGUI.getWidget("BtLogin"); plaButtonLogin.addActionListener(this); ... this.add(panelLoginAbfrage); } public void actionPerformed (ActionEvent ae) { ... if (nm.equals(usrnm) && spw.equals(usrspw)) { plaLabelLoginError.setText(""); refPmViewer.zeigePLE(); } ... } ... }