JDK-5008447 : Calling setCurrentDirectory in JFileChooser does not show JFileChooser
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-03-05
  • Updated: 2004-03-09
  • Resolved: 2004-03-09
Related Reports
Duplicate :  
Relates :  
Description
Calling setCurrentDirectory in JFileChooser does not show JFileChooser. 

Steps to reproduce:
-------------------
1) Compile and run the attached Code on B40. 
2) Note that the JFileChooser doe snot come. 
3) Now Open the Code and comment the line which is calling setcurrentDir
4) Now compile and run again. 
5) note that the JFileChosoer comes. 

This is happening after b38. You can reproduce this from b39 onwards.

Comments
WORK AROUND Create and manipulate Swing components on the Event Dispatch Thread by calling SwingUtilities.invokeLater(). ###@###.### 2004-03-25
25-03-2004

EVALUATION This bug was inadvertently closed as a duplicate of 4980406. It should have been closed as a duplicate of 4997165 instead. ###@###.### 2004-03-25
25-03-2004