JDK-6404832 : scrolling and resize problem in Window XP
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2_11,6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows,windows_xp
  • CPU: generic,x86
  • Submitted: 2006-03-27
  • Updated: 2012-03-23
  • Resolved: 2011-03-07
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.
6u10Fixed 7 b02Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
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

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.