NimbusDefaults has a typo in a L&F property

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 17, 18, 19
    • Component/s: client-libs

      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;
          }

            Assignee:
            Prasanta Sadhukhan
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: