fix for java defect on mac - minimizing JFrame