As the title says I have NPE error. It happens on line:
while (getWidth() > bowl.getX()+10) {
If I remove it, it shows it happens on nex
The line:
GOval bowl = new GOval(10,10);
is declaring a new GOval and hiding the global GOval defined at the bottom.
That line should just be:
bowl = new GOval(10,10);