resetUIState();
Object source = e.getSource();  if (source == picturesList) {    resetUIState(); }
	public void contentsChanged( ListDataEvent e ) {		// Also tell MainFrame (ugly, but works around bug in Swing where when		// the list data changes (and nothing remains to be selected), no		// selection change events are fired.		resetUIState();	}