applet slow down

D

decoy

Hi everyone,
I have a Java applet that slows down to a crawl whenever the mouse
is moved from within the drawing canvas to somewhere else. Has anybody
seen this strange behaviour before, or know what might cause it?

Thanks in advance for your help.
 
Z

zero

(e-mail address removed) wrote in @g47g2000cwa.googlegroups.com:
Hi everyone,
I have a Java applet that slows down to a crawl whenever the mouse
is moved from within the drawing canvas to somewhere else. Has anybody
seen this strange behaviour before, or know what might cause it?

Thanks in advance for your help.

Haven't seen it, but I'm sure I could reproduce it in no time.

applet.addMouseMotionListener(new MouseMotionListener()
{
for(int i = 0; i <= 99999999; i++)
System.out.println("");
});

Which is just my way of saying: without seeing any code we can't help you.
 
Z

zero

(e-mail address removed) wrote in @g47g2000cwa.googlegroups.com:


Haven't seen it, but I'm sure I could reproduce it in no time.

applet.addMouseMotionListener(new MouseMotionListener()
{
for(int i = 0; i <= 99999999; i++)
System.out.println("");
});

Which is just my way of saying: without seeing any code we can't help
you.

oops, forgot the MouseMoved method block, but you get the idea
 
D

decoy

I appreciate that. Unfortunately since the code is thousands of lines
long and requires countless libraries it would be of little help to
you. The main points are: there are no mouse listeners invloved and it
works fine on 99% of machines.

I'm thinking it must be a configuration issue.
 
M

Monique Y. Mudama

I appreciate that. Unfortunately since the code is thousands of
lines long and requires countless libraries it would be of little
help to you. The main points are: there are no mouse listeners
invloved and it works fine on 99% of machines.

I'm thinking it must be a configuration issue.

I'm thinking that without more information, you might as well have
someone blindfold you and spin you around, then have you try to hit
the center of a dartboard somewhere in the room.

A lot of code is thousands of lines long and requires countless
libraries. In fact, a lot of code is tens or hundreds of thousands of
lines long. And yet, developers find and fix bugs in these code bases
all the time.

Read Patricia Shanahan's excellent article for some ideas on how to do
so:

http://home.earthlink.net/~patricia_shanahan/debug/
 
R

ricky.clarkson

Decoy,

I would find out whether other Java applets have this problem on that
machine, e.g., my personal favourite, www.funkypool.com.

I would find out whether other browsers have the same problem on that
machine. Also try appletviewer.

I would look in the Java console for information.

If this fails, try taking the relevant code and making a test case out
of it, i.e., something other people can run that demonstrates the
problem, including the specifics of the computer that it fails on.
 
R

Roedy Green

I appreciate that. Unfortunately since the code is thousands of lines
long and requires countless libraries it would be of little help to
you. The main points are: there are no mouse listeners invloved and it
works fine on 99% of machines.

if everything slows when the mouse is over something, chances are the
problem is that something is not handling the events very well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top