diff options
author | Tania Bento <tbento@redhat.com> | 2006-11-22 20:12:55 +0000 |
---|---|---|
committer | Tania Bento <tbento@redhat.com> | 2006-11-22 20:12:55 +0000 |
commit | 23adb0f0cb7cce0c85bba049acb23559016431b7 (patch) | |
tree | a34097cb0f87b3e2418ece5c767a2a284ac3001a | |
parent | 8d97a48f846bb3fec93f05d0e98e989ba6a6acd8 (diff) | |
download | classpath-23adb0f0cb7cce0c85bba049acb23559016431b7.tar.gz |
2006-11-22 Tania Bento <tbento@redhat.com>
* javax/swing/JRootPane.java
(setLayeredPane): Added documentation; throw
IllegalComponentStateException if layered pane parameter is null.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | javax/swing/JRootPane.java | 12 |
2 files changed, 15 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2006-11-22 Tania Bento <tbento@redhat.com> + + * javax/swing/JRootPane.java + (setLayeredPane): Added documentation; throw + IllegalComponentStateException if layered pane parameter is null. + 2006-11-22 David Gilbert <david.gilbert@object-refinery.com> * java/beans/beancontext/BeanContextSupport.java diff --git a/javax/swing/JRootPane.java b/javax/swing/JRootPane.java index a2cd9c7a0..10fdf10c0 100644 --- a/javax/swing/JRootPane.java +++ b/javax/swing/JRootPane.java @@ -505,15 +505,21 @@ public class JRootPane extends JComponent implements Accessible } /** - * DOCUMENT ME! + * Set the layered pane for the root pane. * - * @param f DOCUMENT ME! + * @param f The JLayeredPane to be used. + * + * @throws IllegalComponentStateException if JLayeredPane + * parameter is null. */ public void setLayeredPane(JLayeredPane f) { + if (f == null) + throw new IllegalComponentStateException(); + if (layeredPane != null) remove(layeredPane); - + layeredPane = f; add(f, -1); } |