-
Bug
-
Resolution: Fixed
-
P4
-
17, 18, 19
-
b24
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;
}
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;
}
- relates to
-
JDK-6430967 BasicProgressBarUI has a typo in a L&F property
- Closed