fix java swing programs (like intellij idea) not regaining focus