JDK-4607052 : Scrollbar Focus behaviour is inconsistent across Platforms.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2001-12-13
  • Updated: 2002-07-24
  • Resolved: 2002-07-16
Related Reports
Relates :  
Description
Focus with respect to Scrollbar is not behaving consistently across platforms.In windows it does not generate any Focus Events if it clicked whereas in Solaris ,it does generate Focus Events and getting a Permanent Focus for itself.

java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)

Please run the attached Program in both Windows and Solaris platforms.

SOLARIS
=======

1.Compile and run the program TemporaryFocusTest.java
2.Focus will be with the button,Now click the Scrollbar.
3.You could see following output 

Focus lost by:class java.awt.Button
BUTTON IS LOSING FOCUS PERMANENTLY

Focus gained by:class java.awt.Scrollbar
SCROLLBAR IS GETTING PERMANENT  FOCUS
scrollbar.hasFocus() :true


whereas in windows no focus evenst will be generated.
================================================================================

Comments
EVALUATION We should investigate this in a future release. ###@###.### 2002-01-14 This was, indeed, a bug in Merlin, but in Hopper it appears to be fixed already. Hopper build 17 generates focus events for both Windows and Solaris. I assume that it was fixed with 4027897 Solaris: Labels & Scrollbars can't receive focus events Closing out as no longer reproducible. ###@###.### 2002-07-16
16-07-2002