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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • docs
    • generic
    • solaris_2.6

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: