United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4070498 : Scrollbar documentation is wrong on what the parameters are.

Details
Type:
Bug
Submit Date:
1997-08-08
Status:
Closed
Updated Date:
1999-01-15
Project Name:
JDK
Resolved Date:
1999-01-15
Component:
docs
OS:
solaris_2.5.1,windows_95,windows_nt
Sub-Component:
guides
CPU:
x86,sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.1.3,1.1.4,1.1.5
Fixed Versions:
1.2.0 (1.2fcs)

Related Reports
Duplicate:
Duplicate:

Sub Tasks

Description

Name: rlT66838			Date: 08/07/97


The documentation for scroll bars refers to how
scrollbars previously worked (but will no longer
work) which may explain why when I run an
application written for 1.02 the scrollbars don't
behave correctly.  The way the maximum is described
is incorrect and following the description gives 
screwy results. The maximum is described as being
the left edge of the visible ( for horizontal)
which means you could have a maximum of zero (if
your visible area was your entire area). That is
not possible with the current implementation. You
cannot set maximum to zero and you can't set visible
to greater than maximum. So if you look at your
example you will see that what maximum should be
set to is 255 + 64 not 255. This behaviour is
consistent for Solaris 2.5 and Windows NT 4.0.

======================================================================

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
generic

FIXED IN:
1.2fcs

INTEGRATED IN:
1.2fcs


                                     
2004-06-14
WORK AROUND



Name: rlT66838			Date: 08/07/97


The workaround is setting maximum to what I
previously used for the maximum plus visible.
======================================================================
                                     
2004-06-11
EVALUATION

Yes, the behavior of  Scrollbar changed with JDK 1.1, but the specs
did not change.  Jeff Dunn verified that the change in behavior was
intentional.  Jeff writes:

"It turns out that there is a good reason to change the spec.
In the 1.0 model, if the visible size of the bubble changed,
the range of the entire scrollbar would also change, which
is not good. With the new model, the range of the scrollbar
does not change unless the programmer does it explicitly."

So, I updated the spec to accurately describe how the maximum
parameter works.


dale.green@eng 1998-08-24
                                     
1998-08-24



Hardware and Software, Engineered to Work Together