From: Yueyi Liu <yl8@duke.edu> To : Date: Tue, 13 Apr 1999 21:14:23 -0400
could anyone help me figure out why this piece of code won't work? addMouseListener( new MouseAdapter(){ public void mouseClicked(MouseEvent e) { myPlaypen.addBall(images); } } ); This is in MyApplet.java. What I am trying to do here is to add a ball whenever the mouse is clicked. But nothing happened when the mouse is clicked.