text: Basically, to familiarize myself with this class I'm doing my first project, which is drawing the Mendelbrot Set, but before that I have to handle much simpler things;
  If I have a the class
  public class Canvas extends JFrame
  and the functions
  Code :
  public static void main(String args[]) { System.out.println("Running Canvas.java"); Canvas canvas = new Canvas(); } public Canvas() { setSize(width, height); setVisible(true); } public void paint(Graphics g) { g.setColor(Color.yellow); g.fillRect(0,0, width, height); }
  Who calls the function paint() when I run Canvas.java? Is it re-called every time that it finishes? Because that's what seems to be happening with my code.
  Thank you in advance for your help