• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

java upgrade makes modal dialog lock up application

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just upgraded from java 1.5.0_01 to java 1.5.0_04 and am now getting a problem with a modal dialog in my java application in Windows (but not in linux). What happens is that I have a modal dialog that comes up and when I do anything that causes a call to dialog.setVisible(false), the dialog disappears (as it should), but the rest of the application is still locked up. The weirdest thing is that this worked without any problem until I updated java versions and it is only in windows. It would seem to indicate there is something screwy in this latest version of the jvm for windows. Any ideas or suggestion?
 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

although your description would be typical for a a certain kind of bug that keeps appearing and disappearing since 1.2 I can not reproduce the problem you describe. I recommend to provide a test case. Also tell us your exact Windows version.

Here is a test case that does NOT produce your problem:

Kai
 
Kevin Davies
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unfortunately, it is very hard to reduplicate this problem in some simplified code. I have been trying to, but I have not been successful. The real code is far to large and proprietory to post here.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From what you've said, sounds like a JDK bug of some sort, yes. If it worked in 1.5.0_01 but not 1.5.0_04, it may be worthwhile for you to try intermediate versions as well. You can find them in Sun's product downloads archive. I'd switch to the most recent JDK version that doesn't exhibit this problem. And search the bug database for reports of similar trouble. If you can't find an existing report that matches what you're seeing, then you'll want to enter a new bug reprot to make Sun aware of the issue. However to do this you will need a test case that you can submit to Sun.
 
Kevin Davies
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was finally able to make a simple code that reproduced the problem
 
Kai Witte
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kevin Davies:
I was finally able to make a simple code that reproduced the problem


Excellent, that helps a lot. The program works as you intend (and as it does with older JREs) when you set a proper owner where applicable:


(Performing everything in the EDT is probably not related to the problem, but I just do it to make sure we have no problems related to that.)

Kai
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic