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

javax.swing.AbstractButton.setFocusPainted() spec needs to be broadened

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: docs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      solaris_2.6

      Description

      javax.swing.AbstractButton.setFocusPainted() spec should be broadened to
      take into account the fact that some look and feels might not support
      painting the focus on the screen.

      Apple's MAC OS X Aqua Look and Feel doesn't support painting focus for
      subclasses of AbstractButton. Need to broaden the spec in order to enable
      Apple passing the JCK. Approved by Lara Bunni.

      The spec should be changed in the following way:

      Replace the following in javax.swing.AbstractButton

      "Sets whether focus should be painted
       b - if true, the focus state is painted"

      with ->

      "Provides a hint to the look and feel whether focus should be painted
      b - if true, the look and feel is advised to paint the focus."

      ======================================
      Here is the excerpt of Apple's message :

      Date: Thu, 15 Feb 2001 15:27:38 -0800
      From: Peri Frantz <###@###.###>
      Subject: Re: JCK, Mac Aqua Look & Feel, and traversable focus
      Cc: Peri Frantz <###@###.###>, Blaine Garst <###@###.###>, Peter Steinauer <###@###.###>, Barry Langdon-Lassagne <###@###.###>, Steve Naroff <###@###.###>
      To: Kirill Soshalsky <###@###.###>
      Content-Transfer-Encoding: 7bit

      .....

      "Aqua does not support the concept of keyboard traversable focus for all
      components. For Java, we have implemented traversable focus for all
      components but for some components, the focus is not visible."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kwalrathsunw Kathy Walrath (Inactive)
              Reporter:
              ksoshals Kirill Soshalskiy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: