United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6404832 scrolling and resize problem in Window XP
JDK-6404832 : scrolling and resize problem in Window XP

Details
Type:
Bug
Submit Date:
2006-03-27
Status:
Closed
Updated Date:
2012-03-23
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
client-libs
OS:
windows_xp,windows
Sub-Component:
java.awt
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.2_11,6
Fixed Versions:

Related Reports
Backport:
Duplicate:
Duplicate:
Relates:

Sub Tasks

Description
The following 3 swing problems are reported by a customer.
(Escalation #1-15990788, case# 64950957)

These problems are observed only on windows XP, not on windows 2000 and 2003.
On windows XP, the problems can be reproduced with IE as well as appletviewer,
therefore this is likely an awt issue.

A simple standalone testcase is provided by customer. 
To reproduce, run the attach applet.  The application displays a 
"wide" table with vertical and horizontal scroll bars.
The table is implemented as a grid of panels instead of JTable.  

Here are the problems:

Problem #1 is not reproducible with the simple testcase, but
customer has demonstrated the problem via "Microsoft Live Meeting"

1. When applet is brought up initially, the horizontal scroll bar will not 
   work (won't scroll right).  When they select one of the alternate views, 
   (e.g. click on sort button to sort the table), then the horizontal scroll 
   will work.


Problems #2 and #3 can easily be reproduced with the testcase.

Slide the horizontal bar to show the far right columns
(now showing column 13-20), try to resize one of these columns:

2. Instead of showing column header 15-20, column header 1-8 is shown.
   (the rest of the cells are still showing column 13-20)

3. As a result, column headers and corresponding column body cells are
   mis-aligned.

                                    

Comments
EVALUATION

According to Microsoft specification of SetScrollInfo, setting of scrolling range or page size may change scrolling position. And even more, specification may be read so as scrolling position may be set just inside the range if it is outside the range. We presume that it is due to this not exactly clear part of specification SetScrollInfo with Windows XP theme actually DOES reset scrolling position inside the range which is historically [0,0] - setting both parts to zero is an idiom to disable scrollbars.

To fix this, we perhaps should make scroll range non-zero even in case when no scrollbars must be visible. Scrollbars in this case should be hidden explicitly. Perhaps there may be better solution but I don't know it.
                                     
2006-04-25



Hardware and Software, Engineered to Work Together