summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gilbert <david.gilbert@object-refinery.com>2006-05-16 19:48:39 +0000
committerDavid Gilbert <david.gilbert@object-refinery.com>2006-05-16 19:48:39 +0000
commitd3d3ba28515b19b8354e9964b101f460d7198fa6 (patch)
treefffb28bb77042647073d0300a0259986fdac75eb
parent44d35710cbd50dbca81fa4da0e465712694fed91 (diff)
downloadclasspath-d3d3ba28515b19b8354e9964b101f460d7198fa6.tar.gz
2006-05-16 David Gilbert <david.gilbert@object-refinery.com>
* javax/swing/DefaultButtonModel.java (setGroup): Removed event notification. ----------------------------------------------------------------------
-rw-r--r--ChangeLog5
-rw-r--r--javax/swing/DefaultButtonModel.java16
2 files changed, 13 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 6df3ee1ab..825796285 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-16 David Gilbert <david.gilbert@object-refinery.com>
+
+ * javax/swing/DefaultButtonModel.java
+ (setGroup): Removed event notification.
+
2006-05-16 Lillian Angel <langel@redhat.com>
* javax/swing/plaf/basic/BasicComboBoxUI.java
diff --git a/javax/swing/DefaultButtonModel.java b/javax/swing/DefaultButtonModel.java
index 25440f0e0..2be18cc8a 100644
--- a/javax/swing/DefaultButtonModel.java
+++ b/javax/swing/DefaultButtonModel.java
@@ -1,5 +1,5 @@
/* DefaultButtonModel.java --
- Copyright (C) 2002, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2004, 2006, Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -63,7 +63,7 @@ import javax.swing.event.EventListenerList;
* change to the "selected" property will trigger the firing of an ItemEvent
* in addition to ChangeEvent. This is true whether the model is enabled or
* not. One other state change is special: the transition from "enabled,
- * armed and pressd" to "enabled, armed and not-pressed". This is considered
+ * armed and pressed" to "enabled, armed and not-pressed". This is considered
* the "trailing edge" of a successful mouse click, and therefore fires an
* ActionEvent in addition to a ChangeEvent. In all other respects this class
* is just a container of boolean flags.
@@ -555,21 +555,21 @@ public class DefaultButtonModel implements ButtonModel, Serializable
* one model in a given group can have their "selected" property be
* <code>true</code> at a time.
*
- * @param g The new "group" property
+ * @param g The new "group" property (<code>null</code> permitted).
+ *
+ * @see #getGroup()
*/
public void setGroup(ButtonGroup g)
{
- if (group != g)
- {
- group = g;
- fireStateChanged();
- }
+ group = g;
}
/**
* Returns the current value of the model's "group" property.
*
* @return The value of the "group" property
+ *
+ * @see #setGroup(ButtonGroup)
*/
public ButtonGroup getGroup()
{