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

JFileChooser 'List' selection icon button can't be selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • beta, 1.0_alpha07, 1.1.7, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.4.0
    • client-libs
    • beta
    • generic, x86, sparc
    • generic, solaris_2.6, solaris_7, solaris_8, windows_nt, windows_2000
    • Verified

      In swing-pre-1.0 with JDK1.1.5, 'List' selection icon button at the top right of
      the JFileChooser (which should display the file list in a more
      concise manner, in several columns) cannot be selected. The user cannot
      'press' it with mouse click.

      This can be seen in the SwingSet FileChooser. This only occurs in Windows 95 and Windows NT.

      The following code also illustrates this:

      import com.sun.java.swing.JFrame;
      import java.io.File;
      import com.sun.java.swing.JFileChooser;

      class FileChooserBug2
        {
        public static void main(String args[])
          {
          JFrame f = new JFrame("FCB"); // Why do I must to specify this silly parent frame?
          JFileChooser fc = new JFileChooser(); // Ok, ok, at least it is documented behaviour :)
          int rc = fc.showDialog(f);
          System.out.println("rc:" + rc);
          System.exit(0);
          } // finish main
        } // finish class FileChooserBug2

      Sent in by Pavel , ###@###.###.

      Name: krT82822 Date: 04/07/99


      The title describes the main problem, experienced with Swing 1.1.1Beta2. In addition, the "Details" button is pressed by default, but no file details are shown. The view is apparently equivalent to Windows' "List" view, despite the "Details" tooltip.
      ======================================================================

      Name: vi73552 Date: 05/20/99


      In JFileChooser, the "list" and "details" buttons don't work. The display seems to be a hybrid of the two - showing folders and files in only the left column but without any details.

      The "details" view should show time/date stamps.

      The "list" view should display in rows and comlumns to maximise the view without scrolling.

      Regards, Leon
      ###@###.###
      (Review ID: 83302)
      ======================================================================

      Name: vi73552 Date: 06/02/99


      Bug # 4105173 occurs with JDK 1.2.2rc1 as well.

      thank you.

      C:\jdk>java -version
      java version "1.2.2"
      Classic VM (build JDK-1.2.2-U, native threads, symcjit)

      C:\jdk>java -fullversion
      java full version "JDK-1.2.2-U"
      (Review ID: 83807)
      ======================================================================

      Name: vi73552 Date: 06/14/99


      /*List and Details buttons on the JFileChooser dialog do not
      appear to do anything. I am concerned that users of my product
      will become confused by this.*/

      package com.xpedite.test;

      import java.io.*;
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;
      import javax.swing.event.*;
      import java.util.*;

      public class fileChooser extends JFrame
      implements ActionListener
      {
      JFileChooser dialog = null;

          public static void main( String[] args ) throws IOException
      {
      fileChooser theApp = new fileChooser();
      }

      public fileChooser()
      throws IOException
      {
              setTitle( "test" );
              
              dialog = new JFileChooser();
              
              setVisible( true );
              dialog.showOpenDialog( this );
          }
          
          public void actionPerformed( ActionEvent e )
      {
              System.out.println( "inside actionPerformed..." );
      }
      }
      (Review ID: 84323)
      ======================================================================

      Name: krT82822 Date: 02/02/2000


      C:\>java -version
      Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
      has value '1.1', but '1.2' is required.

      I have a JFileChooser and it is set up as follows :

              JFileChooser chooser = new JFileChooser();

              chooser.setDialogTitle(dlgTitle);
              chooser.setFileHidingEnabled(true);
              chooser.setMultiSelectionEnabled(false);
              chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              chooser.resetChoosableFileFilters();
              chooser.setCurrentDirectory(parentPath);
              chooser.rescanCurrentDirectory();
              chooser.validate();
              chooser.setFileSystemView(FileSystemView.getFileSystemView());
      chooser.updateUI();

      When I call the showDialog method, it seems to work fine, however, the details
      button(in the upper right hand corner) is always selected and never allows me to
      switch to the list view. All the examples in the swing page seem to show the
      same issue. Am I not doing something right or is it in a future release or what?
      Please letr me know

      ###@###.###
      (Review ID: 100249)
      ======================================================================

            leifs Leif Samuelsson (Inactive)
            nschorrsunw Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: