Kurzmitteilung

DO NOT BLOCK THE EDT

Habe gerade noch einmal an einen Hinweis aus einem Forum gedacht:

Rule #1: Do not block the EDT
Rule #2: DO NOT BLOCK THE EDT, which leads directly to
Rule #3: Do not sleep()in the EDT, and
Rule #4: Do not perform any lengthy-operation in the EDT

Ich finde das eigentlich ganz hilfreich. Durch mein Studium habe ich eigentlich nie vom EDT (Event Dispatcher Thread) erfahren. Vielleicht hilft einem das auch nur bei größeren Projekten und wird deshalb nie erwähnt.

Tipp: Ein Workaround mit Timer oder Executor sollte helfen 😉