[SOLVED] PaintListener not painting?

Discussion in 'Developer Support' started by SlashnHax, Dec 14, 2014.

  1. For some reason nothing is being painted to the canvas. My script bot extends LoopingScript and implements PaintListener, but onRepaint doesn't seem to be drawing anything to the client screen :(

    Code (Text):
    2. @Override
    3. public void onPaint(Graphics2D g){
    4.     g.drawString("TEST", 300, 300);
    5. }
  2. Do you have this on your onStart()?
    Code (Text):
    1. getEventDispatcher().addListener(this);
  3. I do not. Thanks :D
  4. Np :p
  5. I suggest you take a look at one of our official script bot skeletons.

Share This Page