this.mediaFiles = mediaFiles;
setLayout(new BorderLayout());
setOpaque(false);
panel = new JPanel();
panel.setLayout( new FlowLayout() );
panel.setOpaque(false);
vcPanel1 = new VideoCutPanel(mediaFiles, true);
vcPanel2 = new VideoCutPanel(mediaFiles, true);
vcPanel3 = new VideoCutPanel(mediaFiles, false);
panel.add(vcPanel1);
panel.add(new JLabel(" + "));
panel.add(vcPanel2);
panel.add(new JLabel(" = "));
panel.add(vcPanel3);
add("North", panel);
panel = new JPanel();
panel.setLayout(new GridLayout(3, 2));
panel.setOpaque(false);
JPanel centerPanel = new JPanel( new BorderLayout() );
centerPanel.setBorder(BorderFactory.createEtchedBorder());
centerPanel.setOpaque(false);
JPanel miniPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); miniPanel.setOpaque(false);
miniPanel.add( new JLabel("Duration (seconds) "));
panel.add(miniPanel);
miniPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); miniPanel.setOpaque(false);
miniPanel.add( cbDuration = new JComboBox() );
panel.add(miniPanel);
miniPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); miniPanel.setOpaque(false);
miniPanel.add( new JLabel("Video Effect ") );
panel.add(miniPanel);
miniPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); miniPanel.setOpaque(false);
miniPanel.add( cbEffect = new JComboBox() );
panel.add(miniPanel);
miniPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); miniPanel.setOpaque(false);
miniPanel.add( new JLabel("Progress ") );
panel.add(miniPanel);
miniPanel = new JPanel(new FlowLayout(FlowLayout.LEFT)); miniPanel.setOpaque(false);
miniPanel.add( jProgress = new JProgressBar(0, 1000) );
panel.add(miniPanel);
panel2 = new JPanel();
panel2.setLayout( new FlowLayout() );
panel2.add(panel);
panel2.setOpaque(false);
centerPanel.add("North", panel2);
panel = new JPanel();
panel.setOpaque(false);
miniPanel = new JPanel(new FlowLayout(FlowLayout.CENTER)); miniPanel.setOpaque(false);
miniPanel.add( buttonGo = new JButton(" GO! ") );
panel.add(miniPanel);
centerPanel.add("South", panel);
for (int i = 1; i < 10; i++) {