Index: [thread] [date] [subject] [author]
  From: Yueyi Liu <yl8@duke.edu>
  To  : 
  Date: Tue, 13 Apr 1999 21:30:56 -0400

Re: bouncing

I fixed the problem.  What I did is:  
 
  myPlaypen.addMouseListener(  same code as below)

rather than "addMouseListener()" in MyApplet.java. 

Any idea why this code works and my previous one won't?

 
> 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.  
> 
> 
> 
> 


Index: [thread] [date] [subject] [author]