The code works in one place but not in another. Computers aren't magic. So there must be some difference between the two computers. The code is Swing GUI code. The three most likely differences are:
- Different video hardware
- Different code (probably JRE libraries)
- Different Swing Look and Feel (probably caused by different OS)
If something about the Java connection to the video hardware is different on the two machines, try and find out what. Do your machine and the target machine both have the latest video drivers etc? Does the target machine have two monitors, or some other difference in video hardware that might cause different code to be executing?
Differences between the two computers eg JRE or OS might cause different code to be executing. You have told us the JRE and OS for the target machine: what about for your machine? Can you find a third machine, or install another JRE so we know if it is the machine or the JRE?
You might have different Swing Look and Feel's on the two machines. Try with a different Look and Feel.
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
Just to mention the problem is probably with your code somewhere, and the bug is more likely to be your code than in the Swing Libraries, but this at least might help you work out why everything works on one machine and not on another.