Hello !
AFAIK this bug is already fixed in
java 1.5 - see Sun Bug Database BugID 5043070 :
Synopsis : Long time to restore minimized application
Category : java:classes_awt
Reported Against :1.4.2
Release Fixed : 1.5(tiger-rc)
State : Closed, fixed
Description : When you minimize any other large Java app (like NetBeans
IDE) that manages to be really idle when minimized on Windows, it is totally swapped out, and once you switch to it, it is feeling like a zombie for next few minutes.
Solution: Make a system property to allow Java application disable the working set trimming as described in MSKB article 293215. To do so application should override the processing of WM_SYSCOMMAND (wParam == SC_MINIMIZE) and programmatically minimize the window.
The feature is turned off by default, so the behavior of unwilling
applications will not be changed.
sun.awt.keepWorkingSetOnMinimize :
if sun.awt.keepWorkingSetOnMinimize=="true", the working set
trimming is disabled, otherwise the default OS behavior is
preserved.
So you'll have to upgrade to Java1.5 in order to fix it