This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Weird WinXP problem with JFileChooser" Watch "Weird WinXP problem with JFileChooser" New topic
Author

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?


Regards,
Jim
SCJP, SCJD, SCWCD, SCEA Part I
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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Weird WinXP problem with JFileChooser
 
Similar Threads
database/server location
not to hard code database location
JFileChooser problem
JFileChooser to select a drive
Database location and properties file doubts.