Parent Directory | Revision Log | Patch
revision 1.22 by rabbit78, Thu Sep 22 14:48:05 2005 UTC | revision 1.23 by rabbit78, Wed Oct 19 15:16:50 2005 UTC | |
---|---|---|
# | Line 163 public class JButton extends AbstractBut | Line 163 public class JButton extends AbstractBut |
163 | */ | */ |
164 | public void removeNotify() | public void removeNotify() |
165 | { | { |
166 | JRootPane root = SwingUtilities.getRootPane(this); | |
167 | if (root != null && root.getDefaultButton() == this) | |
168 | root.setDefaultButton(null); | |
169 | super.removeNotify(); | |
170 | } | } |
171 | ||
172 | public void setDefaultCapable(boolean defaultCapable) | public void setDefaultCapable(boolean defaultCapable) |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |