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.
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?
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:
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
Joined: Jun 20, 2005
I was finally able to make a simple code that reproduced the problem
Joined: Jul 17, 2004
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.)