This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | File dialog does not show current location | ||
---|---|---|---|
Product: | platform | Reporter: | emmsna <emmsna> |
Component: | Directory Chooser | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
emmsna
2007-12-04 15:04:37 UTC
Reproduced. The behavior is strange : FileChooser that is opened on button pressing doesn't want to show full ancestors path in combobox. But it recognizes correctly the current directory itself and its content. The problem somewhere around setCurrentDirectory() method. Skipping of this method call leads to setup user home directory with correct ancestors path in combobox. But setting current directory with method mentioned above leads to bad values in combobox. This problem concerns plain Java JFileChooser also , so it seems there is some registered services that influence on such behavior. Ok , catch it . The problem is in swing FileChooserUI implementation: com.sun.java.swing.plaf.windows.WindowsFileChooserUI. This is JDK bug. Mentioned JFileChooser uses this UI class for rendering FileChooser content. It differs from other FileChoosers ( f.e. Open Project chooser ) which is implemented in generic way inside NB and doesn't have such problem. *** This issue has been marked as a duplicate of 122577 *** |