aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/MenuItem.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt/MenuItem.java')
-rw-r--r--libjava/java/awt/MenuItem.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/libjava/java/awt/MenuItem.java b/libjava/java/awt/MenuItem.java
index cfdfafc..4defc38 100644
--- a/libjava/java/awt/MenuItem.java
+++ b/libjava/java/awt/MenuItem.java
@@ -310,7 +310,10 @@ deleteShortcut()
public String
getActionCommand()
{
- return(actionCommand);
+ if (actionCommand == null)
+ return label;
+ else
+ return actionCommand;
}
/*************************************************************************/