summaryrefslogtreecommitdiff
path: root/javax/swing/JRootPane.java
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2006-04-06 21:12:31 +0000
committerRoman Kennke <roman@kennke.org>2006-04-06 21:12:31 +0000
commitd5e22e22d48c33495570b858176d8e7e669e6c5d (patch)
tree9b48501bea5d2ff1e0241921d9bc73fe9caa8338 /javax/swing/JRootPane.java
parent18cf26dd3ff480dca279e0243bb52f40fb8d4518 (diff)
downloadclasspath-d5e22e22d48c33495570b858176d8e7e669e6c5d.tar.gz
2006-04-06 Roman Kennke <kennke@aicas.com>
* javax/swing/JRootPane.java (getAccessibleContext): New method. Provides an accessibleContext for JRootPanes.
Diffstat (limited to 'javax/swing/JRootPane.java')
-rw-r--r--javax/swing/JRootPane.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/javax/swing/JRootPane.java b/javax/swing/JRootPane.java
index b99384a32..a2cd9c7a0 100644
--- a/javax/swing/JRootPane.java
+++ b/javax/swing/JRootPane.java
@@ -50,6 +50,7 @@ import java.awt.Rectangle;
import java.io.Serializable;
import javax.accessibility.Accessible;
+import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.swing.plaf.RootPaneUI;
@@ -677,4 +678,17 @@ public class JRootPane extends JComponent implements Accessible
{
return ! glassPane.isVisible();
}
+
+ /**
+ * Returns the accessible context for this JRootPane. This will be
+ * an instance of {@link AccessibleJRootPane}.
+ *
+ * @return the accessible context for this JRootPane
+ */
+ public AccessibleContext getAccessibleContext()
+ {
+ if (accessibleContext == null)
+ accessibleContext = new AccessibleJRootPane();
+ return accessibleContext;
+ }
}