}
}
EventPlayer eventThread = trustGrapher.getEventPlayer();
if (eventThread != null) { //If the eventThread exists
eventThread.setDelay(delay); //Set the new delay
PlaybackPanel playbackPanel = eventThread.getPlaybackPanel();
if (playbackPanel != null) { //If the playbackPanel exists too
playbackPanel.setScrubMode(scrubButton.isSelected()); //Set the scrub mode
}
}
PropertyManager config = trustGrapher.getPropertyManager(); //Set the properties
config.setProperty(DELAY, "" + delay);
config.setProperty(SCRUB_MODE, scrubButton.isSelected() ? "true" : "false");