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.
================================================================================
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.
================================================================================
- relates to
-
JDK-4027897 Solaris: Labels & Scrollbars can't receive focus events
- Closed