Application hanging at start-up
Tim Panton - Westhawk Ltd
tpanton at ibm.net
Sat Nov 12 19:29:10 PST 2005
We saw something similar a while
back, the problem was that we
were not taking the swing threading
guidelines totally seriously. On a
uniprocessor you can get away
with it (less often with swing 1.1).
So something like:
JTextArea t = new JTextArea();
this.add(t);
t.setSomething();
will cause you problems if 'this'
is already visible. You must do the
set before the add, or in a invokeLater() constuct.
T.
Simon Macneall <macneall at iinet.net.au> wrote:
__________
>Hi all,
>We are having a problem with our application hanging about 40% of the time
>during startup. Now, I remember reading in an article in one of the Java
>magazines that this can be caused by image loading for buttons etc.
>However, I can't find the article now that I actually need it (isn't it
>always the way?), does anyone have any references, or seen this before?
>There are a few things on the bugs database, but all seem to be cleared up.
>We are using jdk 1.1.8, swing 1.1.1, Windows NT, on a Dual Pentium III
>machine.
>
>Thanks
>Simon
>
>
URL http://www.westhawk.co.uk/
---
To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
To get help, mail advanced-java-help at xcf.berkeley.edu
More information about the Advanced-java
mailing list