JDK-6425314 : Vista L&F: vertical progress bars are short and too wide.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2006-05-12
  • Updated: 2010-04-02
  • Resolved: 2006-07-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b92Fixed
Related Reports
Relates :  
Relates :  
Description
The vertical progress bar on Vista is short and wide instead of thin and tall. See the attached picture. It could be that the sizing information from the operating system is being reversed.
this problem was introduced by the fix for 6337517 [Call of JProgressBar.getPreferredSize() causes NPE on Windows L&F and custom desktop theme]

Comments
EVALUATION After discussion with another engineer we have decided to remove the dependency on the NORMALSIZE property since it appears to be unreliable and has nothing to do with the preferred size of the progress bar. (NORMALSIZE seems to control skin painting size, not component size.) Instead the the preferred size of the progress bar will use the skin and the super value.
10-07-2006

EVALUATION There are two bugs here. First is that we need to reverse the values from the PP_BARVERT NORMALSIZE property if it's there. No XP theme has the PP_BARVERT NORMALSIZE value but Vista does, and it's backwards from what we were expecting. Second, we should only be using one value from the theme, not both. Ex: for horizontal progbars we should only use the height. The other value should come from the super class. This reflects the fact that Windows native apps apparently only uses one dimension as well. Some themes have NORMALSIZE values of 16x16 which renders fine in native Windows apps but looks like a 16x16 square in Swing.
14-06-2006

EVALUATION the simple way to dodge this bug is to make sure the height is greater than the width for the vertical case.
12-05-2006