classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: RadioButton fix


From: Lillian Angel
Subject: [cp-patches] Patch: RadioButton fix
Date: Thu, 20 Oct 2005 16:20:06 -0400

- Adjusted RadioButton demo, to demonstrate a button group.
- Also, fixed ButtonGroup so that any newly added item that is selected,
sets the 'sel' variable. Otherwise, if it is not initialized here there
is a possibility a user can selected 2 radio buttons at once.

2005-10-20  Lillian Angel  <address@hidden>

        * examples/gnu/classpath/examples/swing/Demo.java
        (mkRadio): Changed to create a panel that contains
        2 buttons in a ButtonGroup.
        * javax/swing/ButtonGroup.java
        (add): Fixed to initialize sel if the newly added
        button is already selected.
        * javax/swing/JToggleButton.java
        (isSelected): Implemented.
        (setSelected): Implemented.
        * javax/swing/plaf/metal/MetalRadioButtonUI.java
        (paintFocus): Fixed size of border drawn around the
        radio button.

Attachment: patch.diff
Description: Text Data


reply via email to

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