title: Has anyone imported DrawingPanel.java to Eclipse?
body: <p>I'm working on a computer science graphics project that requires that I use drawingpanel.java.
  I'm new to this and the explanations that I've seen that are even remotely close to this make no sense to me.  </p>
  
  <p>The code is presented in this form so I need to get it to work this way.</p>
  
  <pre><code>    import java.awt.*; // so I can use Graphics
  
      public class OutlineExample{
          public static void main(String[] args) {
  
          DrawingPanelpanel = new DrawingPanel(150, 70);
          Graphics g = panel.getGraphics();     
          }
      }
  </code></pre>
  
  <p>I'm told that I have to "import" drawingpanel.java into my project somehow.</p>
  
  <p>I've tried file -> import -> general -> filesystem but what happens makes no sense to me.
  I also saw a post somewhere that said it might work to zip drawingpanel.java and rename it to .jar and then import it somehow.  I got nowhere with that.
  Then I tried loading drawingpanel.java into its own project but then what?</p>
  
  <p>Guess I need some step by step.....first push this button, select that file....push this button...type of instructions.  No leaps of logic.  I'm too dense at this point.</p>
  
  <p>Any help would be appreciated.  </p>