public void actionPerformed(ActionEvent ae) {
String mediaFile1 = vcPanel1.getMediaFile();
String mediaFile2 = vcPanel2.getMediaFile();
Time beginTime1 = vcPanel1.getBeginTime();
Time beginTime2 = vcPanel2.getBeginTime();
Time endTime1 = vcPanel1.getEndTime();
Time endTime2 = vcPanel2.getEndTime();
String sDuration = (String) cbDuration.getSelectedItem();
long duration = (long) Integer.parseInt(sDuration) * 1000000000L;
vcPanel3.setURL(null);
if (mediaFile1 == null || mediaFile2 == null ||
beginTime1 == null || beginTime2 == null ||
endTime1 == null || endTime2 == null)
return;
vcPanel1.stop();
vcPanel2.stop();
SuperGlueDataSource sgds = new SuperGlueDataSource(
new String [] { mediaFile1, mediaFile2 },
new Time [] { beginTime1, beginTime2 },
new Time [] { endTime1, endTime2 },
new Time [] { new Time(duration), new Time(duration) },
new String[] { (String) cbEffect.getSelectedItem() },
new String[0],
new Dimension(160, 120));
buttonGo.setEnabled(false);
try {