• Post Reply Bookmark Topic Watch Topic
  • New Topic

DeskTopPane into TabbedPane

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a workarea which is extending a DesktopPane and I want to show two such workareas in a TabbedPane; But I am not able to do that as DesktopPanes can't be kept inside a TabbedPane. But I have to take DesktopPane as a workarea then only I can have multiple windows(InternalFrames) inside it.
So, please help, what to do it?
Thanks a lot.
 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDesktopPane's can indeed be embedded into a JTabbedPane. Take a look at the SwingSet2 demo which ships in Suns JDK 1.3, they do it in there.
Frank
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!