Re: Is this a bug in javax.swing.JFileChooser?



On May 16, 8:01 pm, "Andrew Thompson" <u32984@uwe> wrote:
Daniel Pitts wrote:

..

If you notice, when you first click the directory, the name appears in
the text field.
When you double click, you enter that directory, but the name stays in
the text field.

(snip code)

Using that code, and Java 1.6 on XP, I could not reproduce
the behaviour described. In all combinations of single or
double clicks, the chooser correctly identified the directory
I was opening.
On RedHat Linux, Java 5, I was able to reproduce the OP's "problem".
So, apparently its been fixed in 1.6.

Daniel.

.