t.addActionListener(new ActionListener() {             public void actionPerformed(ActionEvent event) {                 userName = playerNameInput.getText();                 gameDataLayout.show(mainPanel, "0");                 System.out.println(userName);             }         });          playerNameInput.addActionListener(new ActionListener() {             public void actionPerformed(ActionEvent event) {                  userName = playerNameInput.getText();                 gameDataLayout.show(mainPanel, "0");                 System.out.println(userName);             }         });          