JDK-6464868 : GTK L&F: scrollbar button corners do not match native on Ubuntu
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: generic
  • Submitted: 2006-08-29
  • Updated: 2011-03-09
  • Resolved: 2011-03-08
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 JDK 7
6u2Fixed 7 b03Fixed
Related Reports
Relates :  
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 Note that the Nimbus theme in Solaris Nevada has its own set of issues regarding scrollbars. Those issues will be addressed separately in 6478904.
05-10-2006

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.
29-08-2006