Problem
Swing components prior to those included in JavaTM 2 Platform Standard Edition V1.4 do not position, resize, or refresh consistently
Solution
Perform the following steps:
Upgrade to Java 2 Platform Standard Edition V1.4 or later.
Ensure that your application is configured to use the Java 1.4 JVM.