title: Color at Certain Pixel location inside Java Applet?
body: <p>I am currently making a paint like program with Java Applets. I want to simulate a bucket tool by using recursion and checking each pixel around a given point, however I am having trouble getting the RGB value at a given pixel.</p>
  
  <p>Is there a way to do something such as</p>
  
  <pre><code>public void paint(Graphics g) {
      g.getPixelAt(X, Y);
  }
  </code></pre>
  
  <p>Or something?</p>