concept job in category griffon

appears as: job
Griffon in Action

This is an excerpt from Manning's book Griffon in Action.

Next, you’ll spend some time working with the menu items. You’ve hard-coded the names of the actions into the view of your application. Griffon lets you separate your action code from the rest of your application. Defining an action also leads to code reuse, because many Swing components can use the action definition to configure themselves—for example, their label and icon—and also to handle the job they’re supposed to do.

As you’ve seen, the EDT is both a blessing and a curse. On one hand, it makes the job of dispatching events in a serialized way a reality. On the other hand, it spells disaster if developers don’t take special care to avoid executing long-running operations on it.