my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Weird WinXP problem with JFileChooser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Weird WinXP problem with JFileChooser" Watch "Weird WinXP problem with JFileChooser" New topic

Weird WinXP problem with JFileChooser

Jim Bedenbaugh
Ranch Hand

Joined: Nov 09, 2001
Posts: 171
This is weird. I have tested my FBN app on WinME and WinXP.
I use JFileChooser to let the user select the database. In WinME, the JFileChooser dialog is modal and stays on top of the client GUI, but when I run the app on WinXP, the JFileChooser dialog pops up under the client GUI, so you never know to go ahead and select the database because you never see it.
I've looked through the API for JFileChooser and can't find anything about setting the modality.
Any ideas or is this just another undocumented feature (sic) from Microsoft?

Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Jim,
My guess is that the native code has not been changed for XP and that XP has changed some of the windowing components. I know that when we moved from NT4 to 2K Pro, I had to rewrite a bunch of C++ code for just such issues.
Michael Morris

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Kurt Blackmore

Joined: Aug 09, 2002
Posts: 1
I too am developing on XP and using a JFileChooser to allow database file selection. So far, I've had no problems with my FBN project, but have noticed on several occasions that XP gets confused on Z-order sometimes. Interestingly, I've so far not yet had this problem with any of my Java apps. I never experienced this problem on NT or Win2K.
I agree. Here's the link:
subject: Weird WinXP problem with JFileChooser
It's not a secret anymore!