A
Alex Hunsley
I'm looking for ideas for some test code that demonstrates that
accessing GUI items (in Swing) from a thread other than the event
dispatch thread leads to problems.
Ideally, I want to write a small app that does things the "bad way" and
ably (and repeatedly) demonstrates that a problem arises. Anyone have
any ideas of a way to do this?
The nearest parallel to the sort of thing I'm thinking of is the java
program on Sun's site that demonstrates that getting and putting items
into a cubbyhole, without appropriate sychronisation locks, results in
some items being not 'got' at all, or got more than one time....
thanks
alex
accessing GUI items (in Swing) from a thread other than the event
dispatch thread leads to problems.
Ideally, I want to write a small app that does things the "bad way" and
ably (and repeatedly) demonstrates that a problem arises. Anyone have
any ideas of a way to do this?
The nearest parallel to the sort of thing I'm thinking of is the java
program on Sun's site that demonstrates that getting and putting items
into a cubbyhole, without appropriate sychronisation locks, results in
some items being not 'got' at all, or got more than one time....
thanks
alex