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 / June 2005

Tip: Looking for answers? Try searching our database.

Is there a good reason why anyone would want to add any other Component other than a JInternalFrame into a JDesktopPane?

Thread view: 
- - 09 Jun 2005 13:40 GMT
Is there a good reason why anyone would want to add any other Component
other than a JInternalFrame into a JDesktopPane?

Presently, on componentAdded(...) I check for instanceof a
JInternalFrame and if it isn't one then i do not add it.
Christian Kaufhold - 12 Jun 2005 19:48 GMT
> Is there a good reason why anyone would want to add any other Component
> other than a JInternalFrame into a JDesktopPane?

JInternalFrame.DesktopIcon


> Presently, on componentAdded(...) I check for instanceof a
> JInternalFrame and if it isn't one then i do not add it.

What do you mean by "do not add it"?

Christian
- - 16 Jun 2005 01:00 GMT
>>Is there a good reason why anyone would want to add any other Component
>>other than a JInternalFrame into a JDesktopPane?
>
> JInternalFrame.DesktopIcon

My apologies... I forgot to include JInternalFrame.DesktopIcon.
JDesktopPane.add(Component) allows any Component to be added and I have
tried adding other components other than the above two.

I am curious to know whether in the real world, there are applications
that adds other components in a desktop pane.

>>Presently, on componentAdded(...) I check for instanceof a
>>JInternalFrame and if it isn't one then i do not add it.
>
> What do you mean by "do not add it"?

On componentAdded and if the instanceof isn't an internal frame or
desktop icon, then I remove it - "do not add" is a wrong phrase.
Christian Kaufhold - 17 Jun 2005 16:18 GMT

>>>Presently, on componentAdded(...) I check for instanceof a
>>>JInternalFrame and if it isn't one then i do not add it.
[quoted text clipped - 3 lines]
> On componentAdded and if the instanceof isn't an internal frame or
> desktop icon, then I remove it - "do not add" is a wrong phrase.

For which reason are you doing this?

Christian


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.