 playerNameInput.addActionListener(new ActionListener() {     public void actionPerformed(ActionEvent event) {          userName = playerNameInput.getText();         user.setText(userName);         gameDataLayout.show(mainPanel, "0");         