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

Motif ButtonUI: Whenever button is pressed focus is painted(paintFocus is false)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs
    • None

      Swing-1.0.2: I have one comment on painting focus logic of motif look JButton.

      From the line 219 of MotifBorderFactory, hasfocus is always true whenever the
      button is pressed even though focusPaint is false. hasfocus is used to see if
      focus has to be painted or not.

      How about:
      hasFocus = b.isFocusPainted() && b.hasFocus();

      If button's focusPaint is false, focus should not be painted even though button is pressed.
      (Window and Metal ButtonUI follows this well)
      bae-chul.kim@eng 1998-04-16

            jeff Jeff Dinkins
            bkimsunw Bae-chul Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: