Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4607052

Scrollbar Focus behaviour is inconsistent across Platforms.

XMLWordPrintable

    • sparc
    • solaris_8

      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.
      ================================================================================

            dmikhalksunw Denis Mikhalkin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: