Charles Burton wrote:Here is the code I have so far and all I"m getting is a NullPointer.
Charles Burton wrote: And this is where I'm stuck, I've tried using the SwingUtilities to queue up and append of String line to the Event Dispatcher...
Maneesh Godbole wrote:The methods append() and setText() are thread safe.
luck, db
There are no new questions, but there may be new answers.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Yes, he is.Rob Spoor wrote:Are you saying the Javadoc has been incorrect for many Java versions already?
Paul Clapham wrote:
Charles Burton wrote: And this is where I'm stuck, I've tried using the SwingUtilities to queue up and append of String line to the Event Dispatcher...
I don't understand this either, really. You have a perfectly good updateEventArea(String) method which does exactly that. Why don't you just call it?
Paul Clapham wrote:
Charles Burton wrote:Here is the code I have so far and all I"m getting is a NullPointer.
At what line of code? Show us the stacktrace.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Charles Burton wrote:Thread safety doesn't matter as much
luck, db
There are no new questions, but there may be new answers.
Darryl Burke wrote:
Charles Burton wrote:Thread safety doesn't matter as much
Famous last words?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:It works fine at the moment on your own machine. But what about a later time? Or a different machine? Will it still work?
Darryl Burke wrote:
Charles Burton wrote:Thread safety doesn't matter as much
Famous last words?
Rob Camick wrote:I think people where commenting about your comment "thread safety doesn't matter as much". Thread safety does matter.
You don't see a problem because you have implemented the code in a thread safe manner. The invokeLater() makes the implementation thread safe.
That feels good. Thanks. Here's a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|