DevFaqPlatformThreadingInfo

Revision as of 15:58, 6 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

What information is available about threading in the platform?

Generally speaking, you will follow the same threading principles for a platform application as you would for any Swing application. The most important things to keep in mind are:

  • Access the GUI only from the Event Dispatch Thread (EDT)
  • Don't perform any long-running operations inside the EDT

In addition to standard Java utilities for threading such as SwingWorker and EventQueue, the platform APIs provide some classes to assist with threading. These include RequestProcessor and Mutex.

Additionally, the NetBeans Web site contains a document about threading in the platform and IDE.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo