This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Java in General and the fly likes java upgrade makes modal dialog lock up application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "java upgrade makes modal dialog lock up application" Watch "java upgrade makes modal dialog lock up application" New topic
Author

java upgrade makes modal dialog lock up application

Kevin Davies
Greenhorn

Joined: Jun 20, 2005
Posts: 14
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?
Kai Witte
Ranch Hand

Joined: Jul 17, 2004
Posts: 354
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


Kai Witte's business website Kai Witte's private homepage Mock exam / preparation kit reviews
Kevin Davies
Greenhorn

Joined: Jun 20, 2005
Posts: 14
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.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
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.


"I'm not back." - Bill Harding, Twister
Kevin Davies
Greenhorn

Joined: Jun 20, 2005
Posts: 14
I was finally able to make a simple code that reproduced the problem
Kai Witte
Ranch Hand

Joined: Jul 17, 2004
Posts: 354
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java upgrade makes modal dialog lock up application
 
Similar Threads
Problem reactivating JDialogs
How do I keep a dialog box on top?
Application setup
Dialog boxes
All Netscape/Mozilla windows blocking with Modal Dialogs