Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4354065

JFileChooser multifile selection behaves incorrectly

XMLWordPrintable

    • tiger
    • x86
    • windows_98, windows_nt

        -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

        Name: stC104175 Date: 07/18/2000


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
        Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

        Multiselection does not work correctly when choosing an item ABOVE the item(s)
        already selected. For instance, in the JFileChooser click on the first item
        and then shift click below-- this works correctly. However, if you first click
        on a lower item and then shift click above it, the multiselection is cleared.
        The same problem holds for control clicking.

        test code--

        import javax.swing.*;

        public class FileChooserBug extends JFileChooser{

            public static void main(String[] args){
               FileChooserBug bug = new FileChooserBug();
               bug.setMultiSelectionEnabled(true);
               bug.showOpenDialog(new JLabel());
            }

        }
        (Review ID: 107326)
        ======================================================================

        Name: boT120536 Date: 01/19/2001


        java version "1.3.0_01"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
        Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)


        While using a JFileChooser, Multiselection is permitted, selecting several
        single items in the list with CTRL-Leftclick, makes always the topmost selected
        item in the list visible, if not already visible. That is very annoying, while
        selecting items that are seperated with long distance, cause the user to search
        the next item from "top" of the list again.

        (Review ID: 115452)
        ======================================================================

              kereminsunw Konstantin Eremin (Inactive)
              stompkinsunw Sean Tompkins (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: