posted 16 years ago
The code belong to a File IO component of the software I write. Here the fields:
- lastSaveFile is an instance filed holding the file last saved to
- model is a method argument, basically providing the format a document was last saved in (XML, txt, etc.)
- selectedFormat is the JFileChooser FileFilter matching the saving format
- fileKeeper is an instance field, ensuring that the file name in the JFileChooserUI has the appropriate extension if the saving format changes
The line that hangs is fileChooser.setSelectedFile(target);
JConsole shows that the invocation of setSelectedFile() hangs somewhere deep inside Swings PLaF, in FileView.ensureFileVisible(), with some Win32 classes in the stack trace. The final blocking occurs on Unsafe.wait().
Thanks for any ideas.