Someone popped into #java-gnome the other day trying to figure out how
to use CustomEvents to cause GUI actions to be taken from other threads.
A long time ago I was working on something that needed a worker thread
to do do the task at hand while updating a GUI window to show progress.
Since that's when *I* learned how to use java-gnome's CustomEvents
mechanism and since the question seems to come up a lot, I simmered that
bit down into a simple example.
If you want to see it you can grab
http://research.operationaldynamics.com/projects/examples/dist/worker-4.tar=
.gz
and start with the file README.
AfC
Sydney
=20
--=20
Andrew Frederick Cowie
Managing Director
Operational Dynamics Consulting Pty Ltd
http://www.operationaldynamics.com/
Management Consultants specializing in strategy,
organizational architecture, procedures to survive
change, and performance hardening for the people
and systems behind the mission critical enterprise.
Worldwide.
|