how to override the paint method without stopping its functionality

46 views Asked by At

So my assignment wants me to create an applet but as an extra I'm supposed to use the paint method to draw a string, for example:

  public void paint(Graphics g){
           g.drawString("name, name name", 400,100);
    }

My problem is that this pretty much prevents the rest of my app from painting.

0

There are 0 answers