diff options
Diffstat (limited to 'java/awt/TextField.java')
-rw-r--r-- | java/awt/TextField.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/java/awt/TextField.java b/java/awt/TextField.java index 65a4790a9..5c84aab09 100644 --- a/java/awt/TextField.java +++ b/java/awt/TextField.java @@ -44,6 +44,9 @@ import java.awt.peer.ComponentPeer; import java.awt.peer.TextFieldPeer; import java.util.EventListener; +import javax.accessibility.AccessibleContext; +import javax.accessibility.AccessibleStateSet; + /** * This class implements a single line text entry field widget * @@ -517,4 +520,22 @@ paramString() { return (ActionListener[]) getListeners (ActionListener.class); } + + protected class AccessibleAWTTextField extends AccessibleAWTTextComponent + { + protected AccessibleAWTTextField() + { + } + + public AccessibleStateSet getAccessibleStateSet() + { + return super.getAccessibleStateSet(); + } + } + + public AccessibleContext getAccessibleContext() + { + return new AccessibleAWTTextField(); + } + } // class TextField |