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

filechooser in Windows-Libraries folder: columns are mixed up

XMLWordPrintable

    • b72
    • windows_7

        FULL PRODUCT VERSION :
        java version " 1.7.0_21 "
        Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
        Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.1.7601]

        A DESCRIPTION OF THE PROBLEM :
        [for Windows7!]
        in the " libraries/documents " folder, in the detailled view, the columns are mixed up.
        The size if shown in the " date modified " column and the " type " shows the date modified. Size and " folder " columns are empty.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        [for Windows7!]
        1.) create a file chooser (see testcode)
        2.) in the " look in " drop down, choose " Libraries "
        3.) switch to the " details view " mode in the file chooser, so the details are shown in a table
        4.) double click the documents folder
        5.) have a look at the column headers, and what is contained in this columns
        important: this folder " documents " needs to have some content, files and other folders

        ACTUAL -
        unfortunately, I cannot add a screenshot here...

        the columns are mixed up.
        The size if shown in the " date modified " column and the " type " shows the date modified. Size and " folder " columns are empty.

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        public class MyClass
        {
            public static void main(String[] p_args) {
                JFrame f = new JFrame( " test " );
                f.setSize(new Dimension(200,150));

                final Container contentPane = f.getContentPane();
                JButton click = new JButton( " click " );
                contentPane.add(click);
                click.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        JFileChooser fc = new JFileChooser();
                        int result = fc.showDialog(contentPane, " todo " );
                    }
                });

                f.setVisible(true);
            }

        }
        ---------- END SOURCE ----------

              ssadetsky Semyon Sadetsky (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: