PDA

View Full Version : Repaint not working?



JPHamlett
05-10-2011, 03:07 PM
I cant seem to get my paint to update :(

Here's a zip file of my code. It's Chutes and Ladders.


FYI - This still has FAR to go.


The applet loads and everything but when I click it, it doesn't update.

arash
05-14-2011, 02:45 AM
I cant seem to get my paint to update :(

Here's a zip file of my code. It's Chutes and Ladders.


FYI - This still has FAR to go.


The applet loads and everything but when I click it, it doesn't update.

You didn't implement the MouseListener correctly.

JPHamlett
05-14-2011, 04:06 AM
I found out its because when I call repaint(){ this.getGraphics();}

It returns a null graphics throwing the NullPointExeption.