Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4779930
Votes 0
Synopsis windows look&feel: scrollbar arrows are off by one pixel
Category java:classes_swing
Reported Against mantis
Release Fixed
State 6-Fix Understood, bug
Priority: 4-Low
Related Bugs 4268204
Submit Date 15-NOV-2002
Description
In Swing's windows look and feel, the arrows in scrollbar buttons are
shifted one pixel too far to the left, making then off-center.

This sounds harmless, but in fact significantly contributes to Swing
applications looking "off" on the windows platform.  look&feel fidelity
issues should be given a very high priority.

This was reported as part of 4268204 (marked as integrated) but was never
actually fixed.
Work Around
N/A
Evaluation
The algorithm used in BasicArrowButton.java is slightly off from the
windows algorithm and thus the smaller arrows are rendered offset.

Analysis of the algorithm used on Windows2000 for the upper scrollbutton
of a native vertical scrollbar
produces the following metrics given variation of the desktop
property "Scrollbar:Size":

SB Size   8   9  10  11  12  13  14  15  16  17  18  19  
===========================================================
tip-x     4   4   4   5   5   6   6   7   7   8   8   9
tip-y     3   4   4   4   4   5   4?  5   6   6   6   7
arrow-hgt 2   2   2   2   3   3   3   3   4   4   4   5?

We need to re-write our algorithm to match.


  xxxxx@xxxxx   2002-12-04
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang