Index: [thread] [date] [subject] [author]
  From: Jason Grosland <jcg3@cs.duke.edu>
  To  : 
  Date: Tue, 13 Apr 1999 15:45:40 -0400

Re: Applet versus Frame

The best way to fix this is to combine your code into one area.

You can add all your Bounce functionality to something that subclasses
Panel, or has a Panel, or something along those lines.  You can then add
that Panel to your Applet, or to a Frame that you're using in an
application.

This is not just a good idea for bounce, it is a good idea for any java
program that you write.  It keeps the code you have to debug to a minimum,
and allows for you to reuse code instead of replicating functionality.

I'm not sure what problem you had, but your applet and application were
working correctly for me.  I looked at your code, and a few things could
have lead to problems....  the fact that your playpen is static in your
application, but not your applet...  that could have had side affects.

If you are still having problems with this, repost with a message
explaining what isn't working.

...jason

	     - By all means, think outside of the box.    -
	      - Just put everything back when you're done. -

On Mon, 12 Apr 1999, Jeremy Ryan Chotiner wrote:

> I am having trouble getting the mouse reader to work under an applet
> it works fine with my frame in fact it all works fine in my frame .
> it shouldn't make a difference whether it is in an applet i or not cuz
> the mouse listener is in the play pen.
> why wouldn't it work
> 
> 
> 
> 



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