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

Frame & panel  RSS feed

 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between a frame and a panel
 
Andre Brito
Ranch Hand
Posts: 95
Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
A JFrame contains containers like JPanel.
A JPanel is a container.

I believe that JFrame is the "most-close" to window in OS. JPanel is just a part of that window.

I'm sorry for not answering very well and with wrong words. My english is poor.

Bye.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Panel
Frame
 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i was expecting answer in a simple words....
 
Campbell Ritchie
Sheriff
Posts: 55348
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Tutorials are usually simple: if Joanne hasn't already told you, read this and this.

And this appears to be a Swing-related topic, so it would be better on the Swing forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!