this.currentAnswer = new QuizAnswer(answerNo-1, currentQuestion.getId(), this);
this.currentAnswer = new QuizAnswer(answerNo, currentQuestion.getId(), this);
	public void actionPerformed(ActionEvent e) 	{		//user entered chat message		if (e.getSource() == input) {			if (!"".equals(input.getText())) {				ChatMessage message = new ChatMessage(input.getText());				message.setSender(this);								try {					server.takeMessage(message);				} catch (Exception re) {					System.out.println("Exception caught in actionPerformed: "	+ re.getMessage());					re.printStackTrace();				}								//clear input line				input.setText("");			}		}		//Quit		if (e.getSource() == connectButton) 		{			//if we're connected, disconnect			if(this.connected){				this.connectButton.setText("Connect");				disconnect();			}			//otherwise, re-init applet			else{				System.out.println("initializing...");				init();			}		}				//user clicks join game button		if(e.getSource() == startGame)		{			try{				server.joinGame(this);				pointsLabel.setVisible(true);				startGame.setEnabled(false);			}catch(RemoteException re){				System.err.println(re.getMessage());				re.printStackTrace();			}		}				//check if one of the answer buttons is pressed		List buttons =  Arrays.asList(answerButtons);		int answerNo = buttons.indexOf(e.getSource());		if(answerNo != -1 && currentQuestion != null)		{			//set current answer so that server can fetch it later			this.currentAnswer = new QuizAnswer(answerNo-1, currentQuestion.getId(), this);			try {				server.addAnswer(this.currentAnswer);			} catch (RemoteException e1) {				e1.printStackTrace();			}						//disable all answer buttons (user can only answer once per question)			for(int i=0; i<this.answerButtons.length; i++){				this.answerButtons[i].setEnabled(false);			}		}	}