United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5033822 Synth ScrollBar paintTrack() dosn't support orientation
JDK-5033822 : Synth ScrollBar paintTrack() dosn't support orientation

Details
Type:
Enhancement
Submit Date:
2004-04-19
Status:
Resolved
Updated Date:
2005-09-20
Project Name:
JDK
Resolved Date:
2005-09-20
Component:
client-libs
OS:
windows_xp
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports

Sub Tasks

Description
Name: rmT116609			Date: 04/19/2004


FULL PRODUCT VERSION :
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b32c)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b32c, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows XP, but generic issue

A DESCRIPTION OF THE PROBLEM :
if you look at the source for the paintThumb() and paintTrack() methods of SynthScrollBarUI it is easy to see that the track dosn't  support orientation . Orientation  is needed here  by most  3D effect looks.

Copied from SynthScrollBarUI source:

    protected void paintTrack(SynthContext ss, Graphics g,
                              Rectangle trackBounds) {
        SynthLookAndFeel.updateSubregion(ss, g, trackBounds);
        ss.getPainter().paintScrollBarTrackBackground(ss, g, trackBounds.x,
                        trackBounds.y, trackBounds.width, trackBounds.height);
        ss.getPainter().paintScrollBarTrackBorder(ss, g, trackBounds.x,
                        trackBounds.y, trackBounds.width, trackBounds.height);
    }

    protected void paintThumb(SynthContext ss, Graphics g,
                              Rectangle thumbBounds) {
        int orientation = scrollbar.getOrientation();
        ss.getPainter().paintScrollBarThumbBackground(ss, g, thumbBounds.x,
                        thumbBounds.y, thumbBounds.width, thumbBounds.height,
                        orientation);
        ss.getPainter().paintScrollBarThumbBorder(ss, g, thumbBounds.x,
                        thumbBounds.y, thumbBounds.width, thumbBounds.height,
                        orientation);
    }


(Incident Review ID: 254884) 
======================================================================

                                    

Comments
EVALUATION

This RFE has already been taken care of internally. Some other components also need to support orientation (sliders, tabbed pane, etc.)
                                     
2005-08-17



Hardware and Software, Engineered to Work Together