> Hi,
>
[quoted text clipped - 59 lines]
> }
> }
JLabel.setText()

Signature
Knute Johnson
email s/nospam/knute/
On Thu, 08 Dec 2005 18:49:51 +0100, Petterson Mikael
<mikael.petterson@era.ericsson.se> wrote, quoted or indirectly quoted
someone who said :
>//There has been a change
> numberOfThreads=nrOfThreads;
> System.out.println(numberOfThreads);
you do a setText. I don't even think you need to use invokeLater
since that method is thread safe, at least it is for a TextComponent.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Knute Johnson - 09 Dec 2005 02:53 GMT
> On Thu, 08 Dec 2005 18:49:51 +0100, Petterson Mikael
> <mikael.petterson@era.ericsson.se> wrote, quoted or indirectly quoted
[quoted text clipped - 6 lines]
> you do a setText. I don't even think you need to use invokeLater
> since that method is thread safe, at least it is for a TextComponent.
JLabel doesn't extend JTextComponent and the docs do not say that it is
thread safe. I think he would need to update it on the EDT. I think
that may have been the cause of some problems I was have a while back
with the JLabel not resizing correctly.

Signature
Knute Johnson
email s/nospam/knute/