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);
props.setIntProperty(SLIDESHOW_DELAY, jDelay.getValue() / 1000); props.setIntProperty(SLIDESHOW_TRANSITION_DURATION, jTransition.getValue());
	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.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);		if (jOverride.isSelected()) {			props.setColorProperty(SLIDESHOW_COLOR, jBackgroundColor.getSelectedColor());		} else {			props.setProperty(SLIDESHOW_COLOR, null);		}		GalleryRemoteCore core = GalleryRemote._().getCore();		if (!GalleryRemote._().isAppletMode()) {			((MainFrame) core).previewFrame.repaint();		}	}