JToolbar is a java.awt.Container, like all Swing components. You can use any of the add methods from Container. I don't see any reason why you couldn't add a JTree to a JToolbar.
It's a hack, sure. But if it gets you what you want, use it. If you need it to be an MDI window you may need to look at alternative approaches, though. ----- Original Message ----- From: "JAMSHEER" <[EMAIL PROTECTED]> To: "'Greg Munt'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 01, 2002 4:00 AM Subject: RE: Urgent...!!!! Dockable Window > Hi , > I know I can use JToolBar for this purpose. But the support from > JToolBar is very poor from my experience. I want a GUI control like a > window. It must be resizable , closable and minimisable and it must be a MDI > window when floating just like in VC++ IDE. I think JToolBar is not > supporting all these features. Correct me if I'm wrong. > Greg, Thanks for your help.. Can you please share some idea's about > creating custom components ? I think JToolBar can only be used for showing > some buttons. I want to show some complex controls like JTree . > > Regards , > Jamsheer. > > -----Original Message----- > From: Greg Munt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 31, 2002 8:23 PM > To: JAMSHEER; [EMAIL PROTECTED] > Subject: Re: Urgent...!!!! Dockable Window > > > Wait.. > > Why can't you use JToolbar? > > ----- Original Message ----- > From: "JAMSHEER" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 31, 2002 11:15 AM > Subject: Urgent...!!!! Dockable Window > > > > Hi all , > > I need to develop a dockable window in Java.. How can I create a > > dockable window like the 'Project explorer window in Visual C++ IDE' using > > Java ?. I don't want to use JToolBar for this purpose. Is there any > > component available ? > > > > Please help me...it is urgent. > > Thanks , > > Jamsheer. > > _______________________________________________ > > Advanced-swing mailing list > > [EMAIL PROTECTED] > > http://eos.dk/mailman/listinfo/advanced-swing > > > > _______________________________________________ > Advanced-swing mailing list > [EMAIL PROTECTED] > http://eos.dk/mailman/listinfo/advanced-swing > _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing