Fix Swing threading violation