@Override
	public void update(Observable model, Object msg) {
		ObserverMessage message = (ObserverMessage) msg;
		if (msg instanceof ObserverMessage) {
			if (message.getMessage()==ObserverMessage.NEW_LOG_MESSAGE) {
				String logmessage = ((AutoDJModel) model).getLogtext();
				if (!logmessage.endsWith("\n")) logmessage+="\n";
				logPanel.append(logmessage);
				logPanel.setCaretPosition(logPanel.getDocument().getLength());
			} else if (message.getMessage()==ObserverMessage.LIBRARY_CHANGED) {
				// display new content
				libraryList.setListData(((AutoDJModel) model).getSongLibrary());
			} else if (message.getMessage()==ObserverMessage.PLAYLIST_CHANGED) {
				// display new content
				playlistList.setListData(((AutoDJModel) model).getPlaylist());
			}
		}
	}