NextApp Echo2
Class IllegalChildException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by
All Implemented Interfaces:

public class IllegalChildException
extends java.lang.RuntimeException

An exception thrown when attempting to add a child to the component hierarchy where either the parent is incompatible with the child or the child is incompatible with the parent. This exception may be thrown in cases such as attempting to add children to a component that does not support children (e.g., a Label), or adding too many children to an object (e.g., adding more than two children to a SplitPane.

See Also:
Serialized Form

Constructor Summary
protected IllegalChildException(Component parent, Component illegalChild)
          Creates a new IllegalChildException.
Method Summary
 Component getIllegalChild()
          Returns the illegally added child.
 Component getParent()
          Returns the parent component to which the child was to be added.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


protected IllegalChildException(Component parent,
                                Component illegalChild)
Creates a new IllegalChildException.

parent - the parent component
illegalChild - the child that was attempted to be illegally added
Method Detail


public Component getIllegalChild()
Returns the illegally added child.

the child


public Component getParent()
Returns the parent component to which the child was to be added.

the parent

NextApp Echo2