Display problems in java, can't find symbol errors
<p>Keep getting these cannot find symbol errors. I know its concerning the picture class and it's methods but I know they are there but my compiler can't recognize them. Any Ideas?       </p>

<pre><code>     import java.awt.Color;
     import java.awt.Graphics;

     public class DispTest 
     { 

       private Picture display;
       private Graphics graphics;

       public DispTest()
       {
        display = new Picture(500,500);
        graphics = display.getGraphics();
        for(int x = 0; x &lt; display.getWidth(); x++) {
           for(int y = 0; y &lt; display.getHeight(); y++) {
             display.getPixel(x,y).setColor(new Color(123,204,246));
             if((x &gt; 0 &amp;&amp; x % 50 == 0) || (y &gt; 0 &amp;&amp; y % 50 == 0))
             display.getPixel(x,y).setColor(new Color(44,72,39));
           }
        }

        graphics.setColor(new Color(44,72,39));
          for(int x = 10; x &lt; display.getWidth(); x += 50) 
             for(int y = 10; y &lt; display.getHeight(); y += 50) 
                graphics.drawOval(x,y,30,30);
           display.show();
        }


        public static void main(String [] args)
        {
          DispTest dt = new DispTest();

        }
    }
</code></pre>

<p>5 errors found:</p>

<pre><code>File: C:\Users\Andrew\SoftwareDevelopment\DispTest.java  [line: 22]
Error: cannot find symbol
  symbol:   method getGraphics()
  location: variable display of type Picture
File: C:\Users\Andrew\SoftwareDevelopment\DispTest.java  [line: 25]
Error: cannot find symbol
  symbol:   method getPixel(int,int)
  location: variable display of type Picture
File: C:\Users\Andrew\SoftwareDevelopment\DispTest.java  [line: 27]
Error: cannot find symbol
  symbol:   method getPixel(int,int)
  location: variable display of type Picture
File: C:\Users\Andrew\SoftwareDevelopment\DispTest.java  [line: 32]
Error: cannot find symbol
  symbol:   method getWidth()
  location: variable display of type Picture
File: C:\Users\Andrew\SoftwareDevelopment\DispTest.java  [line: 33]
Error: cannot find symbol
  symbol:   method getHeight()
  location: variable display of type Picture
</code></pre>
