force gui to run in Swing event dispatch thread