On Aug 8, 4:16 pm, "John B. Matthews" <nos...@nospam.invalid> wrote:
In article
<6a90ee4f-075a-471a-bc01-8b008e0d7...@m73g2000hsh.googlegroups.com>,
ifarbe...@lsplab.com wrote:
On Aug 8, 2:06 am, "John B. Matthews" <nos...@nospam.invalid> wrote:
In article
<b469becd-b3d6-49b4-8582-bce9c9296...@x35g2000hsb.googlegroups.com>,
ifarbe...@lsplab.com wrote:
On Aug 7, 6:29 pm, Roedy Green <see_webs...@mindprod.com.invalid>
wrote:
On Thu, 7 Aug 2008 10:24:41 -0700 (PDT), ifarbe...@lsplab.com wrote,
quoted or indirectly quoted someone who said :
have developed a Swing client that is comprised of 8 different
screens. T
All the Swing gui updating, all the Swing event handling, and all your
timer tasks are handled by a single thread. If any one of them takes a
long time or goes to sleep or waits for something, it will hold up the
entire assembly line.
[...]
The problem is that GUI remains responsive, but Timer-driven events
don't get fired for a while, and then they just resume.
You might verify that the actionPerformed() method of the Timer's
designated ActionListener is being called with the Timer's nominal
period. Using start(), stop(), restart(), setDelay() or setRepeats() in
a subclass are all potential culprits. How do the subclasses deal with
network latency in the normal course? Is your network experiencing
unusual delays, as Daniele suggests?
[...]
This happens most often, when both client and server run on the same
machine, so network delays can be rulled out.
This certainly suggests some kind of resource contention, and even the
loopback interface takes time and consumes cycles.
I would understand it it if the whole GUI was locked - that would
mean that update is taking too long or deadlocking. But instead it
seems that Timer events just stop firing all together.
Which makes me wonder if a subclass stops the timer while waiting for
something. If it's possible, the NetBeans IDE profiler has a nice
threads display. As javax.swig.Timer action event handlers execute on
the EDT, look for AWT-EventQueue-0 (or similar). I'm sure other IDEs
have something similar.
--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews- Hide quoted text -
- Show quoted text -
theory of what may be going on. It seems that if a computer clock is
action events. And as a matter of fact my program does speed up
system clock. Once in a while the computer clock in syncronized with
the network clock, which may push my computer clock back.