@Override
	public void insertUpdate(DocumentEvent event) {
		if(event.getDocument() == nameTb.getDocument() || event.getDocument() == messageTbLeft.getDocument()){
			previewLeft.update(messageTbLeft.getText(), "%JOINEDPLAYER%", nameTb.getText());
			
			if(nameTb.getText().equalsIgnoreCase("join-format-string"))
				bAddPlayer.setEnabled(false);
			else bAddPlayer.setEnabled(true);
		}else if(event.getDocument() == messageTbRight.getDocument() && playerList.getSelectedValue() != null){
			if(playerList.getSelectedValue() != null){
				String name = playerList.getSelectedValue() + "";
				previewRight.update(messageTbRight.getText(), "%JOINEDPLAYER%", name);
				bSaveMessage.setEnabled(true);
			}else{
				bSaveMessage.setEnabled(false);
				bDeletePlayer.setEnabled(false);
				previewRight.update("", "", "");
			}
		}
	}