Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958545

Daniel Tofan
Unregistered




Re: Correction
      09/23/03 12:50 AM

That's right, this one slipped through. As a matter of fact, here is how both methods should look like:

public void setSelected(AbstractButton button, boolean selected)
{
if (button != null) setSelected(button.getModel(), selected);
}

public void setSelected(ButtonModel model, boolean selected)
{
AbstractButton button = getButton(model);
if (buttons.contains(button))
{
super.setSelected(model, selected);
if (getSelection() == button.getModel()) selectedButton = button;
}
}

Thanks for noticing DT

Post Extras Print Post   Remind Me!     Notify Moderator


Entire topic
Subject Posted by Posted on
* Correction Pit 09/19/03 06:18 AM
. * * Re: Correction Daniel Tofan   09/23/03 12:50 AM
. * * Adding unselectAll method Mark Thomas   01/15/04 11:39 AM
. * * Re: Adding unselectAll method    04/25/07 06:56 AM
. * * Re: Adding unselectAll method Anonymous   07/23/04 08:55 AM

Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   



Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Thread views: 8157

Rate this thread

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5