One of our clients is having problems with running simple Swing app. To detect the problem, we gave him a dummy app which had following code -
The client reported that he did see the output "Starting..." on the DOS console when he ran this program, but he was unable to see the Swing dialog box. There is no exception or error either. This code runs as expected on our machines (Win2k, JDK 1.4). The client runs Win2K and JDK 1.4 as well. What could be the reason for this problem? This is sort of urgent and important, so any help would be greatly appreciated. TIA, - Manish
Not really sure what could be the issue here... To get a little more information you could add lines into the code like -
This will print out the version of Java the program is running under and will print out the JOptionPane class if it finds it. The frame test shows whether Java internally thinks the frame is showing or not... or whether the JVM just mysteriously locks up when the frame attempts to become visible.
I'm not really sure how much this will help, though, since you said he doesn't get any error messages... Maybe there's something messed up with the JVM install and he'll need to re-install it... There's not anything weird with any of the hardware setup is there?
Write once, run anywhere, because there's nowhere to hide! - /. A.C.