diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-01-16 15:14:51 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-01-16 15:14:51 +0000 |
commit | f3bca904add8a1e256b2c245c169e8e5a69efcd7 (patch) | |
tree | 4b18335ee421c49bcc9a418d9abc4193634986f7 /java/awt/Menu.java | |
parent | e38101c185b90d301bac951b84a77ed711d18e54 (diff) | |
download | classpath-f3bca904add8a1e256b2c245c169e8e5a69efcd7.tar.gz |
2005-01-16 Andrew John Hughes <gnu_andrew@member.fsf.org>
Final merge of HEAD patches to generics branch
All changes are listed in merged Changelog.
In addition,
* java/lang/System.java:
(getenv()): changed Runtime.securityManager to
SecurityManager.current
(getenv(String)): likewise
(remove(String)): pointed to SystemProperties
* gnu/classpath/SystemProperties.java:
(remove(String)): implemented and documented
Diffstat (limited to 'java/awt/Menu.java')
-rw-r--r-- | java/awt/Menu.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/java/awt/Menu.java b/java/awt/Menu.java index 35798a066..3cc9cc301 100644 --- a/java/awt/Menu.java +++ b/java/awt/Menu.java @@ -451,12 +451,18 @@ paramString() } } - /* (non-Javadoc) - * @see java.awt.MenuComponent#getAccessibleContext() + /** + * Gets the AccessibleContext associated with this <code>Menu</code>. + * The context is created, if necessary. + * + * @return the associated context */ public AccessibleContext getAccessibleContext() { - return new AccessibleAWTMenu(); + /* Create the context if this is the first request */ + if (accessibleContext == null) + accessibleContext = new AccessibleAWTMenu(); + return accessibleContext; } } // class Menu |