private void addPlayerBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addPlayerBtnActionPerformed
        String playerName = playerNameText.getText();
        playerNameText.setText("");
        try {
            DBController.addPlayer(playerName);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(WelcomeScreen.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(WelcomeScreen.class.getName()).log(Level.SEVERE, null, ex);
        }
        NewPlayerPlanel.setVisible(false);
        playBtn.setVisible(true);
//        String spcomboSel = (String) singlePlayerNameCombo.getSelectedItem();
//        String p1combo1Sel = (String) player1Combo.getSelectedItem();
//        String p2combo1Sel = (String) player2Combo.getSelectedItem();
        
        
        singlePlayerNameCombo.removeAllItems();
        player1Combo.removeAllItems();
        player2Combo.removeAllItems();

        String[] names = null;
        try {
            names = DBController.getPlayers();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(WelcomeScreen.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(WelcomeScreen.class.getName()).log(Level.SEVERE, null, ex);
        }

        for (String name : names) {
            singlePlayerNameCombo.addItem(name);
            player1Combo.addItem(name);
            player2Combo.addItem(name);
        }

        if (isSinglePlayer) {
            singlePlayerPanel.setVisible(true);
//            singlePlayerNameCombo.setSelectedItem(singlePlayerNameCombo.getItemCount() - 1);
        } else {
            twoPlayerPanel1.setVisible(true);
//
//            if (isPlayer == 1) {
//                player1Combo.setSelectedItem(player1Combo.getItemCount() - 1);
//            }
//            if (isPlayer == 2) {
//                player2Combo.setSelectedItem(player2Combo.getItemCount() - 1);
//            }
        }
    }//GEN-LAST:event_addPlayerBtnActionPerformed