Hello everyone !
Here's the problem:
I have a JDesktopPane and I want to put two JInternalFrames in it.
Here's the piece of code:
getDesktopPanel().add(getPropsPane());
getDesktopPanel().add(getChildFrame());
At the first line the "illegal component position" exception is thrown
getDesktopPanel() returns a JDesktopPane. getPropsFrame() and
getChildFrame() both return JInternalFrames. What's wrong here ?!
Thanks for replying,
DAN
Ryan Stewart - 28 Jan 2004 12:54 GMT
> Hello everyone !
> Here's the problem:
[quoted text clipped - 12 lines]
> Thanks for replying,
> DAN
There's no such thing as an IllegalComponentPositionException in J2SE. There
is an IllegalComponentStateException. Is that what you're getting? What does
the stack trace look like? What does the code look like? Can you give a
small *compilable* example that causes the exception to be thrown? See
http://www.physci.org/codes/sscce.jsp