• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPanel vs JDesktopPane  RSS feed

 
Koh Khai Huat
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

What is the difference between JPanel and JDesktopPane ???

regarde
 
Rob Spoor
Sheriff
Posts: 21052
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First line of the JDesktopPane API:
A container used to create a multiple-document interface or a virtual desktop.
When you add a JInternalFrame to a JDesktopPane, it behaves as a JFrame but within the JDesktopPane.
JPanels are just containers for components, and do not offer this MDI behaviour.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!