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

NimbusDefaults has a typo in a L&F property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 19
    • 17, 18, 19
    • client-libs

    Description

      The is a typo in a method javax.swing.plaf.nimbus.NimbusDefaults#initializeDefaults

         d.put("ProgressBar.vertictalSize", new DimensionUIResource(19, 150));

      Source file -
      jdk/src/java.desktop/share/classes/javax/swing/plaf/nimbus/skin.laf

                     <uiProperty name="vertictalSize" type="DIMENSION">
                        <dimension width="19" height="150"/>
                     </uiProperty>

      It seems this default is never used now. As method 'javax.swing.plaf.basic.BasicProgressBarUI#getPreferredInnerVertical' tries to find property by "ProgressBar.verticalSize"

          protected Dimension getPreferredInnerVertical() {
              Dimension vertDim = (Dimension)DefaultLookup.get(progressBar, this,
                  "ProgressBar.verticalSize");
              if (vertDim == null) {
                  vertDim = new Dimension(12, 146);
              }
              return vertDim;
          }

      Attachments

        Issue Links

          Activity

            People

              psadhukhan Prasanta Sadhukhan
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: