[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Button fix
From: |
Roman Kennke |
Subject: |
[cp-patches] FYI: Button fix |
Date: |
Fri, 30 Sep 2005 15:16:48 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.4 |
This fixes the initialization code for some buttons.
2005-09-30 Roman Kennke <address@hidden>
Fixes Bug #24115
* javax/swing/AbstractButton.java
(AbstractButton): Don't call init() from here. Moved some
initialization code from init() to the constructor.
(init): Moved most of the initialization code to the constructor.
* javax/swing/JCheckBox.java
(JCheckBox()): call this(..) instead of super(..). Don't call
init() here, this is already performed by the
JToggleButton constructor.
(JCheckBox(Action)): Don't call init() here, this is already
performed by the JToggleButton constructor.
(JCheckBox(Icon)): call this(..) instead of super(..). Don't call
init() here, this is already performed by the JToggleButton
constructor.
(JCheckBox(Icon, boolean)): Likewise.
(JCheckBox(String)): Likewise.
(JCheckBox(String, boolean)): Likewise.
(JCheckBox(String, Icon)): Likewise.
(JCheckBox(String, Icon, boolean)): Don' call init here. This is
already performed by the JToggleButton constructor. Set the
correct defaults for horizontalAlignment and borderPainted
properties here.
* javax/swing/JRadioButton.java
(JRadioButton(String, Icon, boolean)): Use acccessor methods
instead of directly manipulating package private fields of
AbstractButton.
* javax/swing/JToggleButton.java
(JToggleButton(String, Icon, boolean)): Set correct value for the
alignmentX property.
/Roman
buttons.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Button fix,
Roman Kennke <=