* accordingly.
*/
protected EventListener createControlListener() {
return new ChangeListener() {
public void stateChanged(ChangeEvent e) {
ProgressBar s = (ProgressBar) e.getSource();
int value = s.getValue();
long mediaNanos = (long)((value * duration) /
(s.getMaximum() - s.getMinimum()));
// Intel JMF: Setting media time will update video frame
// Sun JMF: Video does not re-render until controller is restarted
Controller controller = getController();
int priorState = controller.getState();