props.setIntProperty(SLIDESHOW_DELAY, Integer.parseInt(jDelay.getText()));
props.setBooleanProperty(SLIDESHOW_LOOP, jLoop.isSelected()); int delay; try { delay = (int) Float.parseFloat(jDelay.getText()); } catch (NumberFormatException e) { Log.logException(Log.LEVEL_ERROR, MODULE, e); delay = 7; } props.setIntProperty(SLIDESHOW_DELAY, delay);
	public void writeProperties(PropertiesFile props) {		if (jNoStretch.isSelected() != props.getBooleanProperty(SLIDESHOW_NOSTRETCH)) {			ImageUtils.purgeTemp();			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.setBooleanProperty(SLIDESHOW_PRELOADALL, jPreloadAll.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 (!GalleryRemote._().isAppletMode()) {			((MainFrame) core).previewFrame.repaint();		}	}