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
You are shadowing your bowl field at the class level in the init method,
bowl
init
private GOval bowl; public void init() { // GOval bowl = new GOval(10,10); bowl = new GOval(10,10); add(bowl); addMouseListeners(); }