Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

applet slow down

Thread view: 
decoy@system102.com - 14 Dec 2005 13:28 GMT
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.
zero - 14 Dec 2005 13:58 GMT
decoy@system102.com wrote in news:1134566923.431753.179390
@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.

Signature

Beware the False Authority Syndrome

zero - 14 Dec 2005 14:01 GMT
> decoy@system102.com wrote in news:1134566923.431753.179390
> @g47g2000cwa.googlegroups.com:
[quoted text clipped - 17 lines]
> 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

Signature

Beware the False Authority Syndrome

decoy@system102.com - 14 Dec 2005 14:27 GMT
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.
Monique Y. Mudama - 14 Dec 2005 17:10 GMT
> 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/

Signature

monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html

ricky.clarkson@gmail.com - 14 Dec 2005 17:58 GMT
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.
Roedy Green - 14 Dec 2005 23:49 GMT
>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.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.