• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Swing dialog not visible  RSS feed

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.
- Manish
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?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!