Forgot to tell, the minimize problem in the new code is not caused by *my *old minimize listener, as you can see in the code.
java version "1.6.0_14-ea" Java(TM) SE Runtime Environment (build 1.6.0_14-ea-b04) Java HotSpot(TM) Client VM (build 14.0-b13, mixed mode) Windows xp.
