No Property Events are fired with JFileChooser
Hello,
I'm trying to use the JFileChooser class and I have a problem on which I've been already wasting for more than 2 days. I don't know whether it is normal, but if I implement an accessory with :
JFileChoose fc =new JFileChooser();
fc.setAccessory(new ImagePreview(fc));
The class ImagePreview displays a thumbnail of the selected file (if a picture). In this class, , I have implemented the listener :
fc.addPropertyChangeListener(this);
When running my program, I noticed an strange behaviour if multiple selections are allowed.
If I select only one image name, the picture displays correctly in the preview panel.
If I select many (one by one) the image does not change. I checked with a trace (I've just added a System.out.println)the listener gets control only on the firstselected item.
Is it normal ?
In fact, I'd like to select (or not select) a picture depending on what I'm seeing from the Preview panel (but of course, without deselecting items already selected. )
Is there a solution ? Thanks in advance for help
Gege

