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

XP L&F: Navigation bar icon spacing issues in JFileChooser

    XMLWordPrintable

Details

    • b22
    • generic, x86
    • generic, windows_xp
    • Not verified

    Description

      Name: jk109818 Date: 05/07/2003


      FULL PRODUCT VERSION :
      java version "1.4.2-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
      Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)

      FULL OS VERSION :
      Microsoft Windows XP [Version 5.1.2600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
        To see the trucated text, you must switch to "Windows Classic Style". The icon
      text looks correct when XP is set to "Windows XP Style". To change,
       - right click on the desktop, choose properties
       - choose the Appearance tab
       - switch "Windows and buttons" to "Windows Classic Style"

      The spacing problem is present with both XP and Windows Classic styles.


      A DESCRIPTION OF THE PROBLEM :

      The left icon bar for the XP L&F JFileChooser has spacing issues as compared
      to the native XP file dialog. Specifically:

       - in the native file dialog there are a few pixels at the top of every
         icon which are not present in the JFileChooser. This is most obvious
         at the top of the bar, where the "My Recent Documents" icon is flush
         against the top of the button bar.

       - the native file dialog allows more vertical space to the left and
         right of the icons

       - the JFileChooser cuts off the dialog text. In a plain JFileChooser from
         SwingSet, I see:

           [image]
         My Recen...

           [image]
           Desktop

           [image]
         My Docu...

           [image]
         My Comp...

           [image]
         My Netwo...

      (note the trucation "..." ) where as, in the native file dialog I see:

           [image]
          My Recent
          Documents

           [image]
           Desktop


           [image]
         My Documents


           [image]
         My Computer


           [image]
         My Network
           Places

      Note the usage of multiple lines, and that the full text is visible.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :

      Use SwingSet, bring up plain JFileChooser on a Window XP box.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -

      The text shouldn't be trucated and should look like the native dialog.
      ACTUAL -

      Trucated text in JFileChooser, minor spacing issues.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 185385)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              rupashka Pavel Porvatov (Inactive)
              jkimsunw Jeffrey Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: