classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: AbstractButton fixlet


From: Roman Kennke
Subject: [cp-patches] FYI: AbstractButton fixlet
Date: Mon, 14 Nov 2005 11:59:29 +0000

Disabled buttons should not be able to receive focus. I fixed this in
AbstractButton.setEnabled(). Note that this really is a button issue, in
general it is possible for disabled components to receive focus. This is
explicitly stated in the focus specification:
file:///home/roman/share/doc/jdk1.5.0/api/java/awt/doc-files/FocusSpec.html

2005-11-14  Roman Kennke  <address@hidden>

        * javax/swing/AbstractButton.java
        (setEnabled): Also set focusable flag on the button when the
enabled
        property changes.

Cheers,
Roman

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]