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

JFileChooser has truncated strings

    XMLWordPrintable

Details

    • x86, sparc
    • solaris_2.5.1, windows_xp

    Description

      OPERATING SYSTEM(S):
      --------------------
      ALL Microsoft Windows platforms (XP, windows server 2003)

      PROBLEM DESCRIPTION:
      --------------------
      For JFileChooser in windows look & feel the windows icon and folder names in the left most panel (windows placebar) are getting truncated. This problem happens for all locales including English and more severe when used for European locales like German/French. Also there is no other option like tooltip to read fully if the text is truncated.


      STEPS TO REPRODUCE:
      -------------------
      i) Log-in to a windows machine with German/French Language pack and
          above JRE installed.
      i) Run JFileChooserTest

      Observed result:
      The folder name Recent in German (Zulezt verwendete Dokumente) is getting truncated. The word 'Dokumente' is partially visible only. In French the Recent folder (Mes documents recents) is also truncated.

      Expected result:
      Truncation should be avoided by other proper methods.

      TESTCASE DESCRIPTION:
      ---------------------
      import javax.swing.*;
      class JFileChooserTest extends JFrame{
       
        JFileChooserTest() {
          try {
            UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            new JFileChooser().showOpenDialog(this);
          } catch (Exception e) {
            e.printStackTrace();
          }
        }

        public static void main(String[] args) {
          new JFileChooserTest();
        }
      }

      Attachments

        Issue Links

          Activity

            People

              tr Tejesh R
              elarsen Erik Larsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: