summaryrefslogtreecommitdiff
path: root/javax/swing/AbstractButton.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/AbstractButton.java')
-rw-r--r--javax/swing/AbstractButton.java17
1 files changed, 2 insertions, 15 deletions
diff --git a/javax/swing/AbstractButton.java b/javax/swing/AbstractButton.java
index 8984c633c..5aaf71651 100644
--- a/javax/swing/AbstractButton.java
+++ b/javax/swing/AbstractButton.java
@@ -517,18 +517,7 @@ public abstract class AbstractButton extends JComponent
*/
public AbstractButton()
{
- this("",null);
- }
-
- /**
- * Creates a new AbstractButton object.
- *
- * @param txt Value to use for the button's "text" property
- * @param icon Value to use for the button's "defaultIcon" property
- */
- AbstractButton(String txt, Icon icon)
- {
- init (txt, icon);
+ init("", null);
updateUI();
}
@@ -610,10 +599,8 @@ public abstract class AbstractButton extends JComponent
String ac = model.getActionCommand();
if (ac != null)
return ac;
- else if (text != null)
- return text;
else
- return "";
+ return text;
}
/**