title: Swing Timer Compilation Error
body: <p>I'm in the process of creating a little application for school that counts down the time that you entered into the jTextField. I haven't gotten that far yet because as I was creating the Swing Timer, I got a couple of errors that I cant figure out. I've Googled with out any luck. </p>
  
  <p>Here's my code.</p>
  
  <pre><code>    package randomGUIs;
  
      import javax.swing.Timer;
      import java.awt.event.ActionEvent;
      import java.awt.event.ActionListener;
  
      public class Timer extends javax.swing.JFrame {
  
         String time;
         Timer countDownTimer;
  
      public Timer() {
         initComponents();
  
      ActionListener downTime = new ActionListener() {
  
          @Override
          public void actionPerformed(ActionEvent evt) {
  
              jLabel1.setText(time);
  
          }
      };
  
      int countdown = 1000;
      countDownTimer = new Timer(countdown, downTime);
      countDownTimer.setRepeats(true);
  
  };
  </code></pre>
  
  <p>The error that I'm getting</p>
  
  <p>error: randomGUIs.Timer is already defined in this compilation unit
  import javax.swing.Timer;</p>
  
  <p>I'm Using Netbeans and have tried unchecking the "Compile on save option" with out luck</p>