package nxm.audio.mcr;

import java.util.Hashtable;

import javax.swing.JLabel;

/** GUI for AUDIOPLAYER.
    Created on September 7, 2005, 4:12 PM
    @author  lmt
 */
public class audioplayer extends javax.swing.JFrame {
  /** NOTE: this should be changed if the structure/fields of this class changes. */
  private static final long serialVersionUID = 2013010400331L; // for Serializable interface

  /** Creates new form audioplayer */
  public audioplayer() {
    initComponents();
  }

  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    jMenuBar1 = new javax.swing.JMenuBar();
    jMenu1 = new javax.swing.JMenu();
    mainPanel = new javax.swing.JPanel();
    File = new javax.swing.JButton();
    rewind = new javax.swing.JButton();
    play = new javax.swing.JButton();
    pause = new javax.swing.JButton();
    ff = new javax.swing.JButton();
    record = new javax.swing.JButton();
    stop = new javax.swing.JButton();
    sliderPanel = new javax.swing.JPanel();
    volumePanel = new javax.swing.JPanel();
    row1sliders = new javax.swing.JPanel();
    volumeLabel = new javax.swing.JLabel();
    leftLabel = new javax.swing.JLabel();
    volumeSlider = new javax.swing.JSlider();
    leftSlider = new javax.swing.JSlider();
    row2sliders = new javax.swing.JPanel();
    balanceLabel = new javax.swing.JLabel();
    rightLabel = new javax.swing.JLabel();
    balanceSlider = new javax.swing.JSlider();
    Hashtable<Integer,JLabel> labelTable = new Hashtable<>();
    labelTable.put(Integer.valueOf(0), new JLabel("L"));
    labelTable.put(Integer.valueOf(100), new JLabel("R"));
    balanceSlider.setLabelTable(labelTable);
    balanceSlider.setPaintLabels(true);
    rightSlider = new javax.swing.JSlider();
    volButtonPanel = new javax.swing.JPanel();
    volumeResetPanel = new javax.swing.JPanel();
    volumeReset = new javax.swing.JButton();
    jPanel2 = new javax.swing.JPanel();
    Mute = new javax.swing.JButton();
    tunerPanel = new javax.swing.JPanel();
    tunerSlider = new javax.swing.JSlider();
    tunerResetPanel = new javax.swing.JPanel();
    tunerReset = new javax.swing.JButton();
    speedPanel = new javax.swing.JPanel();
    speedSlider = new javax.swing.JSlider();
    speedResetPanel = new javax.swing.JPanel();
    speedReset = new javax.swing.JButton();
    buttonPanel = new javax.swing.JPanel();
    recIn = new javax.swing.JButton();
    filter = new javax.swing.JButton();
    agc = new javax.swing.JButton();
    invert = new javax.swing.JButton();
    timesPanel = new javax.swing.JPanel();
    absoluteLabel = new javax.swing.JLabel();
    abSemi1 = new javax.swing.JLabel();
    absTime1 = new javax.swing.JLabel();
    abSemi2 = new javax.swing.JLabel();
    absTime2 = new javax.swing.JLabel();
    abSemi3 = new javax.swing.JLabel();
    absTime3 = new javax.swing.JLabel();
    relativeLabel = new javax.swing.JLabel();
    relSemi1 = new javax.swing.JLabel();
    relSemi2 = new javax.swing.JLabel();
    relTime2 = new javax.swing.JLabel();
    relTime1 = new javax.swing.JLabel();
    relSemi3 = new javax.swing.JLabel();
    relTime3 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    remSemi1 = new javax.swing.JLabel();
    remTime1 = new javax.swing.JLabel();
    remSemi2 = new javax.swing.JLabel();
    remTime2 = new javax.swing.JLabel();
    remSemi3 = new javax.swing.JLabel();
    remTime3 = new javax.swing.JLabel();

    jMenu1.setText("Menu");
    jMenuBar1.add(jMenu1);

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    setTitle("Audio Player");
    addWindowListener(new java.awt.event.WindowAdapter() {
      public void windowClosed(java.awt.event.WindowEvent evt) {
        formWindowClosed(evt);
      }
    });

    mainPanel.setLayout(new java.awt.GridBagLayout());

    File.setText("File");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    mainPanel.add(File, gridBagConstraints);

    rewind.setText("rewind");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    mainPanel.add(rewind, gridBagConstraints);

    play.setText("play");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    mainPanel.add(play, gridBagConstraints);

    pause.setText("pause");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    mainPanel.add(pause, gridBagConstraints);

    ff.setText("ff");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    mainPanel.add(ff, gridBagConstraints);

    record.setText("record");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    mainPanel.add(record, gridBagConstraints);

    stop.setText("stop");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    mainPanel.add(stop, gridBagConstraints);

    sliderPanel.setLayout(new java.awt.GridBagLayout());

    volumePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)), "Volume"));
    volumePanel.setLayout(new java.awt.GridBagLayout());

    row1sliders.setLayout(new java.awt.GridBagLayout());

    volumeLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    volumeLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    volumeLabel.setText("Volume");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
    row1sliders.add(volumeLabel, gridBagConstraints);

    leftLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    leftLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    leftLabel.setText("Left");
    leftLabel.setMaximumSize(new java.awt.Dimension(19, 12));
    leftLabel.setPreferredSize(new java.awt.Dimension(19, 12));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
    row1sliders.add(leftLabel, gridBagConstraints);

    volumeSlider.setMajorTickSpacing(50);
    volumeSlider.setMinorTickSpacing(10);
    volumeSlider.setPaintLabels(true);
    volumeSlider.setPaintTicks(true);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    row1sliders.add(volumeSlider, gridBagConstraints);

    leftSlider.setMajorTickSpacing(50);
    leftSlider.setMinorTickSpacing(10);
    leftSlider.setPaintLabels(true);
    leftSlider.setPaintTicks(true);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    row1sliders.add(leftSlider, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    volumePanel.add(row1sliders, gridBagConstraints);

    row2sliders.setLayout(new java.awt.GridBagLayout());

    balanceLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    balanceLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    balanceLabel.setText("Balance");
    balanceLabel.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    row2sliders.add(balanceLabel, new java.awt.GridBagConstraints());

    rightLabel.setFont(new java.awt.Font("Tahoma", 0, 10));
    rightLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    rightLabel.setText("Right");
    row2sliders.add(rightLabel, new java.awt.GridBagConstraints());

    balanceSlider.setMajorTickSpacing(50);
    balanceSlider.setPaintTicks(true);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    row2sliders.add(balanceSlider, gridBagConstraints);

    rightSlider.setMajorTickSpacing(50);
    rightSlider.setMinorTickSpacing(10);
    rightSlider.setPaintLabels(true);
    rightSlider.setPaintTicks(true);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    row2sliders.add(rightSlider, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    volumePanel.add(row2sliders, gridBagConstraints);

    volButtonPanel.setAlignmentX(0.0F);
    volButtonPanel.setAlignmentY(0.0F);
    volButtonPanel.setAutoscrolls(true);
    volButtonPanel.setMinimumSize(new java.awt.Dimension(73, 29));
    volButtonPanel.setPreferredSize(new java.awt.Dimension(73, 29));
    volButtonPanel.setLayout(new java.awt.BorderLayout());

    volumeReset.setText("Reset");
    volumeReset.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    volumeResetPanel.add(volumeReset);

    volButtonPanel.add(volumeResetPanel, java.awt.BorderLayout.EAST);

    Mute.setText("Mute");
    Mute.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    Mute.setMaximumSize(new java.awt.Dimension(63, 23));
    Mute.setMinimumSize(new java.awt.Dimension(63, 23));
    Mute.setPreferredSize(new java.awt.Dimension(63, 23));
    jPanel2.add(Mute);

    volButtonPanel.add(jPanel2, java.awt.BorderLayout.WEST);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    volumePanel.add(volButtonPanel, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridheight = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    sliderPanel.add(volumePanel, gridBagConstraints);

    tunerPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)), "Tuner"));
    tunerPanel.setLayout(new java.awt.BorderLayout());

    tunerSlider.setPaintLabels(true);
    tunerPanel.add(tunerSlider, java.awt.BorderLayout.CENTER);

    tunerReset.setText("Reset");
    tunerReset.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    tunerReset.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    tunerResetPanel.add(tunerReset);

    tunerPanel.add(tunerResetPanel, java.awt.BorderLayout.EAST);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    sliderPanel.add(tunerPanel, gridBagConstraints);

    speedPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)), "Speed"));
    speedPanel.setLayout(new java.awt.BorderLayout());

    speedSlider.setPaintLabels(true);
    speedPanel.add(speedSlider, java.awt.BorderLayout.CENTER);

    speedReset.setText("Reset");
    speedResetPanel.add(speedReset);

    speedPanel.add(speedResetPanel, java.awt.BorderLayout.EAST);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    sliderPanel.add(speedPanel, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.gridwidth = 6;
    gridBagConstraints.gridheight = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    mainPanel.add(sliderPanel, gridBagConstraints);

    buttonPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)));
    buttonPanel.setLayout(new java.awt.GridBagLayout());

    recIn.setFont(new java.awt.Font("Tahoma", 0, 10));
    recIn.setText("RecIn");
    recIn.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    recIn.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    recIn.setMaximumSize(new java.awt.Dimension(65, 23));
    recIn.setMinimumSize(new java.awt.Dimension(65, 23));
    recIn.setPreferredSize(new java.awt.Dimension(65, 23));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    buttonPanel.add(recIn, gridBagConstraints);

    filter.setFont(new java.awt.Font("Tahoma", 0, 10));
    filter.setText("Filter");
    filter.setMaximumSize(new java.awt.Dimension(65, 23));
    filter.setMinimumSize(new java.awt.Dimension(65, 23));
    filter.setPreferredSize(new java.awt.Dimension(65, 23));
    filter.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        filterActionPerformed(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 15, 5);
    buttonPanel.add(filter, gridBagConstraints);

    agc.setFont(new java.awt.Font("Tahoma", 0, 10));
    agc.setText("AGC");
    agc.setMaximumSize(new java.awt.Dimension(65, 23));
    agc.setMinimumSize(new java.awt.Dimension(65, 23));
    agc.setPreferredSize(new java.awt.Dimension(65, 23));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(15, 5, 5, 5);
    buttonPanel.add(agc, gridBagConstraints);

    invert.setFont(new java.awt.Font("Tahoma", 0, 10));
    invert.setText("Invert");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    buttonPanel.add(invert, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.gridheight = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    mainPanel.add(buttonPanel, gridBagConstraints);

    timesPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(153, 153, 153)), "Times"));
    timesPanel.setLayout(new java.awt.GridBagLayout());

    absoluteLabel.setFont(new java.awt.Font("Tahoma", 0, 12));
    absoluteLabel.setText("Absolute");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(0, 3, 3, 3);
    timesPanel.add(absoluteLabel, gridBagConstraints);

    abSemi1.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 1, 3);
    timesPanel.add(abSemi1, gridBagConstraints);

    absTime1.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 1, 1);
    timesPanel.add(absTime1, gridBagConstraints);

    abSemi2.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 1, 1);
    timesPanel.add(abSemi2, gridBagConstraints);

    absTime2.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 1, 1);
    timesPanel.add(absTime2, gridBagConstraints);

    abSemi3.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 1, 1);
    timesPanel.add(abSemi3, gridBagConstraints);

    absTime3.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.insets = new java.awt.Insets(0, 1, 1, 1);
    timesPanel.add(absTime3, gridBagConstraints);

    relativeLabel.setFont(new java.awt.Font("Tahoma", 0, 12));
    relativeLabel.setText("Relative");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);
    timesPanel.add(relativeLabel, gridBagConstraints);

    relSemi1.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 3);
    timesPanel.add(relSemi1, gridBagConstraints);

    relSemi2.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);
    timesPanel.add(relSemi2, gridBagConstraints);

    relTime2.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);
    timesPanel.add(relTime2, gridBagConstraints);

    relTime1.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);
    timesPanel.add(relTime1, gridBagConstraints);

    relSemi3.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);
    timesPanel.add(relSemi3, gridBagConstraints);

    relTime3.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 1, 1);
    timesPanel.add(relTime3, gridBagConstraints);

    jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel2.setText("Remaining");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(3, 3, 0, 3);
    timesPanel.add(jLabel2, gridBagConstraints);

    remSemi1.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 0, 3);
    timesPanel.add(remSemi1, gridBagConstraints);

    remTime1.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 0, 1);
    timesPanel.add(remTime1, gridBagConstraints);

    remSemi2.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 0, 1);
    timesPanel.add(remSemi2, gridBagConstraints);

    remTime2.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 0, 1);
    timesPanel.add(remTime2, gridBagConstraints);

    remSemi3.setText(":");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 0, 1);
    timesPanel.add(remSemi3, gridBagConstraints);

    remTime3.setText("00");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.insets = new java.awt.Insets(1, 1, 0, 1);
    timesPanel.add(remTime3, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 7;
    gridBagConstraints.gridheight = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    mainPanel.add(timesPanel, gridBagConstraints);

    getContentPane().add(mainPanel, java.awt.BorderLayout.CENTER);

    pack();
  }// </editor-fold>//GEN-END:initComponents

  private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
    // TODO add your handling code here:
  }//GEN-LAST:event_formWindowClosed

  private void filterActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_filterActionPerformed
    // TODO add your handling code here:
  }//GEN-LAST:event_filterActionPerformed

  /** Main driver for running audioplayer as an instance
   *  @param args the command line arguments
   */
  public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
        new audioplayer().setVisible(true);
      }
    });
  }

  // Variables declaration - do not modify//GEN-BEGIN:variables
  /** File button */
  private javax.swing.JButton File;
  /** Mute button */
  private javax.swing.JButton Mute;
  /** Times: Absolute 1st semicolon */
  private javax.swing.JLabel abSemi1;
  /** Times: Absolute 2nd semicolon */
  private javax.swing.JLabel abSemi2;
  /** Times: Absolute 3rd semicolon */
  private javax.swing.JLabel abSemi3;
  /** Times: Absolute HH */
  private javax.swing.JLabel absTime1;
  /** Times: Absolute MM */
  private javax.swing.JLabel absTime2;
  /** Times: Absolute SS */
  private javax.swing.JLabel absTime3;
  /** Times: Absolute Label */
  private javax.swing.JLabel absoluteLabel;
  /** AGC button */
  private javax.swing.JButton agc;
  /** Balance label */
  private javax.swing.JLabel balanceLabel;
  /** Balance slider */
  private javax.swing.JSlider balanceSlider;
  /** button panel */
  private javax.swing.JPanel buttonPanel;
  /** Fast Forward button */
  private javax.swing.JButton ff;
  /** Filter button */
  private javax.swing.JButton filter;
  /** Invert button */
  private javax.swing.JButton invert;
  /** label with "Remaining" text */
  private javax.swing.JLabel jLabel2;
  /** Menu */
  private javax.swing.JMenu jMenu1;
  /** bar holding menu */
  private javax.swing.JMenuBar jMenuBar1;
  /** panel for mute button */
  private javax.swing.JPanel jPanel2;
  /** left label */
  private javax.swing.JLabel leftLabel;
  /** left slider */
  private javax.swing.JSlider leftSlider;
  /** main panel */
  private javax.swing.JPanel mainPanel;
  /** Pause button */
  private javax.swing.JButton pause;
  /** Play button */
  private javax.swing.JButton play;
  /** RecIn Button */
  private javax.swing.JButton recIn;
  /** Record button */
  private javax.swing.JButton record;
  /** Times: Relative 1st semicolon */
  private javax.swing.JLabel relSemi1;
  /** Times: Relative 2nd semicolon */
  private javax.swing.JLabel relSemi2;
  /** Times: Relative 3rd semicolon */
  private javax.swing.JLabel relSemi3;
  /** Times: Relative HH */
  private javax.swing.JLabel relTime1;
  /** Times: Relative MM */
  private javax.swing.JLabel relTime2;
  /** Times: Relative SS */
  private javax.swing.JLabel relTime3;
  /** Times: Relative label */
  private javax.swing.JLabel relativeLabel;
  /** Times: Remaining 1st semicolon */
  private javax.swing.JLabel remSemi1;
  /** Times: Remaining 2nd semicolon */
  private javax.swing.JLabel remSemi2;
  /** Times: Remaining 3rd semicolon */
  private javax.swing.JLabel remSemi3;
  /** Times: Remaining HH */
  private javax.swing.JLabel remTime1;
  /** Times: Remaining MM */
  private javax.swing.JLabel remTime2;
  /** Times: Remaining SS */
  private javax.swing.JLabel remTime3;
  /** Rewind button */
  private javax.swing.JButton rewind;
  /** right label */
  private javax.swing.JLabel rightLabel;
  /** right slider */
  private javax.swing.JSlider rightSlider;
  /** panel for row 1 sliders */
  private javax.swing.JPanel row1sliders;
  /** panel for row 2 sliders */
  private javax.swing.JPanel row2sliders;
  /** Slider panel */
  private javax.swing.JPanel sliderPanel;
  /** Speed panel */
  private javax.swing.JPanel speedPanel;
  /** Speed Reset button */
  private javax.swing.JButton speedReset;
  /** Speed Reset Panel */
  private javax.swing.JPanel speedResetPanel;
  /** Speed slider */
  private javax.swing.JSlider speedSlider;
  /** Stop button */
  private javax.swing.JButton stop;
  /** Times panel */
  private javax.swing.JPanel timesPanel;
  /** Tuner panel */
  private javax.swing.JPanel tunerPanel;
  /** Tuner Reset button */
  private javax.swing.JButton tunerReset;
  /** Tuner Reset Panel */
  private javax.swing.JPanel tunerResetPanel;
  /** Tuner slider */
  private javax.swing.JSlider tunerSlider;
  /** Volume button panel */
  private javax.swing.JPanel volButtonPanel;
  /** Volume label */
  private javax.swing.JLabel volumeLabel;
  /** Volume panel */
  private javax.swing.JPanel volumePanel;
  /** Volume reset button */
  private javax.swing.JButton volumeReset;
  /** Volume reset panel */
  private javax.swing.JPanel volumeResetPanel;
  /** Volume slider */
  private javax.swing.JSlider volumeSlider;
  // End of variables declaration//GEN-END:variables

}