Taking focus fix for java swing apps