United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6464868 GTK L&F: scrollbar button corners do not match native on Ubuntu
JDK-6464868 : GTK L&F: scrollbar button corners do not match native on Ubuntu

Details
Type:
Bug
Submit Date:
2006-08-29
Status:
Closed
Updated Date:
2011-03-09
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
solaris_9
Sub-Component:
javax.swing
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports
Backport:
Relates:

Sub Tasks

Description
There are a number of issues with scrollbars under the GTK L&F such that they do
not match native ones, especially under the clearlooks and ubuntulooks engines
and the Human theme used on Ubuntu 6.06:
  1) scrollbar buttons are not rounded as they should be on ubuntulooks/clearlooks
  2) scrollbar thumb should respect native minimum size property
  3) scrollbar not positioned correctly when used in a scrollpane
       a) scrollbar should be flush with viewport edges
       b) scrollbar should be a certain distance away from viewport edge

                                    

Comments
EVALUATION

Here is the evaluation for each of the above issues:

1) The ubuntulooks and clearlooks engines will render a scrollbar arrow button
differently depending on the x/y/w/h and allocation parameters in the native widget.
Currently our GTKPainter code is only capable of differentiating a horiz vs vertical
scrollbar; we need to go one step further and break it up into up/down/left/right
cases.  Then we need to modify the native paint_box() method and tweak the
values appropriately so that we trick these engines into rendering the correct button
background.  (This approach isn't exclusive to the mentioned engines; it should work
with all other engines too.)

2) We just need to hook up the ScrollBar.minimumThumbSize UI property to the
native GTK "min-slider-length" style property.

3) We need to add code to GTKStyle.getScrollBarInsets() to differentiate between
the standalone case and the case where the scrollbar is part of a scrollpane.  In
the latter case, we should use the "scrollbar-spacing" style property to determine
how far away to place the scrollbar from the viewport.  We also need to avoid setting
insets at the ends of the scrollbar so that the ends remain flush with the viewport
edges.
                                     
2006-08-29
EVALUATION

Note that the Nimbus theme in Solaris Nevada has its own set of issues regarding
scrollbars.  Those issues will be addressed separately in 6478904.
                                     
2006-10-05



Hardware and Software, Engineered to Work Together