>>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