Chapter 7. Multithreaded applications

 

This chapter covers

  • Understanding the need for well-behaved multithreaded desktop applications
  • Working with Griffon’s multithreading facilities for Swing-based applications
  • Additional UI toolkit-agnostic threading facilities for all components

We’re halfway through our journey of discovering what Griffon has to offer to desktop application development. By now you should be familiar with the core concepts, such as the MVC pattern and the way Griffon implements it, its command utilities, and its configuration options, just to name a few. But there’s more to Griffon than that. For example, you can extend the framework’s capabilities to upgrade an application’s looks. And you can certainly create an application that’s prepared to deal with the terrible beast that is concurrent programming in the JVM.

Handling threading in desktop applications is a crucial task. Do it carelessly, and your users will walk away. Continue reading to find out the secrets for mastering multithreaded applications with Griffon.

7.1. The bane of Swing development

7.2. SwingBuilder alternatives

7.3. Multithreaded applications with Griffon

7.4. SwingXBuilder and threading support

7.5. Putting it all together

7.6. Additional threading options

7.7. Summary