@Override
	public void actionPerformed(ActionEvent e) {
		Object src = e.getSource();
		if(src == btLogin){
			try{
				if(tfEnterNickname.getText().length() <= 12){
				User Loginuser = new User(tfEnterNickname.getText());
				this.out.writeObject(Loginuser);
				tfEnterNickname.setText("");
				setVisible(false);
				playtable = new Playtable(this.out, this.in);
				}else{
					tfEnterNickname.setText("");
					JOptionPane.showMessageDialog(null, "Nickname darf nicht mehr als 12 Zeichen haben!", "Dein Nickname ist zu lang!", JOptionPane.PLAIN_MESSAGE);
				}
			}catch (java.io.IOException IOException){
				IOException.printStackTrace();
			}
		}else if(src == tfEnterNickname){
			try{
				if(tfEnterNickname.getText().length() <= 12){
				User Loginuser = new User(tfEnterNickname.getText());
				this.out.writeObject(Loginuser);
				tfEnterNickname.setText("");
				setVisible(false);
				playtable = new Playtable(this.out, this.in);
				}else{
					tfEnterNickname.setText("");
					JOptionPane.showMessageDialog(null, "Nickname darf nicht mehr als 12 Zeichen haben!", "Dein Nickname ist zu lang!", JOptionPane.PLAIN_MESSAGE);
				}
			}catch (java.io.IOException IOException){
				IOException.printStackTrace();
			}
		}
	}