This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Actors and Swing-GUI

1 reply
Kai Meder
Joined: 2009-04-29,
User offline. Last seen 42 years 45 weeks ago.

Hello

is there any Scala-Idiom or clean way to integrate Actors with a Swing GUI?

- Sending Status/Data-Messages from the Actors to the GUI for Display
- Binding Controls like ProgressBar to Actors to display their
progress/status
- Controlling Actors from GUI-Controls (Start,Stop,Resume-Messages)

Thanks,
Kai

wrburdick
Joined: 2009-09-21,
User offline. Last seen 3 years 3 weeks ago.
Re: Actors and Swing-GUI
Use Swing.onEDT(function) to execute GUI updates within the swing event thread.  You can send messages to actors from inside the Swing event thread (like in action listeners) just fine.

Bill


On Tue, Dec 1, 2009 at 6:55 PM, Kai Meder <stuff@kai.meder.info> wrote:
Hello

is there any Scala-Idiom or clean way to integrate Actors with a Swing GUI?

- Sending Status/Data-Messages from the Actors to the GUI for Display
- Binding Controls like ProgressBar to Actors to display their progress/status
- Controlling Actors from GUI-Controls (Start,Stop,Resume-Messages)

Thanks,
Kai

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland