Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pane concept  RSS feed

 
RaviSankar Krothapalli
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
difference between pane and frame
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi RaviSankar,
If I understand you correctly, you want to know what the difference is between the "java.awt.Frame" class and the "java.awt.Panel" class.
A "Frame" is a top-level container, and a "Panel" is an ordinary container. Each GUI application requires exactly one top-level container. "Frame" is not the only top-level container, but it is the one that is most often used.
"Panel"s are used to hold other GUI components (like "Button"s or "Label"s). Usually, you create (for example) a "Label", a "Panel" and a "Frame". You "add" the "Label" to the "Panel" and the "Panel" to the "Frame".
Hope this has helped answer your question.
Good Luck,
Avi.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!