title: DrawingPanel cannot be resolved to a type, java
body: <p>I'm working through a textbook for beginners learning java and we are starting to learn about objects. I tried to create a drawing panel using the following code and I got the error DrawingPanel cannot be resolved to a type.</p>
  
  <pre><code>package graphics;
  import java.awt.*;
     // for graphics
  
  public class Graphics {
  
      public static void main(String[] args) {
          // TODO Auto-generated method stub
          // create the drawing panel
          DrawingPanel panel = new DrawingPanel(200, 100);
          // draw a line on the panel using
          // the Graphics paintbrush
          Graphics g = panel.getGraphics();
          g.drawLine(25, 75, 175, 25);    
      }
  
  }
  </code></pre>
  
  <p>I'm a little confused and have looked up other people online having the same problem and not one really giving them any answer as to why this is happening.</p>