I'm using JDK 1.2 so I think that implies I'm also using Swing 1.2.
By default, JFileChooser is in single selection mode,
that is, I need to make a call to setMultiSelectionEnabled()
in order to enable selection of more than one file. However, in
single selection mode, the file chooser highlights more than one
file. I can either SHIFT-Click or CTRL-Click on a second file and more
than one will be highlighted. This is very misleading to users as it
give the impression that more than one file has been selected and will,
therefore, be operated upon.
The one-line suggested fix will make the visuals agree with the implemented
semantics.