if (core instanceof MainFrame) {
if (!GalleryRemote._().isAppletMode()) {
	public void writeProperties(PropertiesFile props) {		if (jNoStretch.isSelected() != props.getBooleanProperty(SLIDESHOW_NOSTRETCH)) {			GalleryRemote._().getCore().flushMemory();		}		props.setIntProperty(SLIDESHOW_PROGRESS, ((LocationItem) jProgress.getSelectedItem()).id);		props.setIntProperty(SLIDESHOW_CAPTION, ((LocationItem) jCaption.getSelectedItem()).id);		props.setIntProperty(SLIDESHOW_EXTRA, ((LocationItem) jExtra.getSelectedItem()).id);		props.setIntProperty(SLIDESHOW_URL, ((LocationItem) jUrl.getSelectedItem()).id);		props.setBooleanProperty(SLIDESHOW_LOWREZ, jLowRez.isSelected());		props.setBooleanProperty(SLIDESHOW_RANDOM, jRandom.isSelected());		props.setBooleanProperty(SLIDESHOW_NOSTRETCH, jNoStretch.isSelected());		props.setIntProperty(SLIDESHOW_DELAY, Integer.parseInt(jDelay.getText()));		if (jOverride.isSelected()) {			props.setColorProperty(SLIDESHOW_COLOR, jBackgroundColor.getSelectedColor());		} else {			props.remove(SLIDESHOW_COLOR);		}		GalleryRemoteCore core = GalleryRemote._().getCore();		if (core instanceof MainFrame) {			((MainFrame) core).previewFrame.repaint();		}	}