• Post Reply Bookmark Topic Watch Topic
  • New Topic

windowwhat is the diference between and panel

 
vikas kate
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
windowwhat is the diference between and panel
 
K. Tsang
Bartender
Posts: 3610
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

What's your question again? Is is "what the difference between window and panel"?

Well in Swing terms, window called a JFrame is a top level component (aka the application window). Inside a JFrame there can be many panels called JPanel that allow other components like buttons, text boxes, tables etc to go on it.

Apart from JFrame and JPanel, there is a dialog called JDialog similar to JFrame only it's modal popup in nature.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!