Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

"illegal component position" again

Thread view: 
DD - 28 Jan 2004 11:04 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.