Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing dialog not visible

 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!