"I wholeheartedly recommend you check out chapter 5 of Scott Delap's book
which implements an automatic detector of Swing threading violations - a tool
that every GUI developer should include in their everyday development suite"
"It is possible to ge a deadlock at classloading time by trying to acquire a lock on the class monitor in another thread while still in the static initializer"