• Post Reply Bookmark Topic Watch Topic
  • New Topic

jframe VS jpanel  RSS feed

 
abalfazl hossein
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JPanel serves as a general purpose container, while JFrame is a window commonly used for stand-alone applications, like a warning window, or a notification window.

http://www.differencebetween.net/technology/difference-between-jpanel-and-jframe/
Then the most usage for jframe to create pop up. Right?
 
Campbell Ritchie
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
abalfazl hossein wrote: . . . Then the most usage for jframe to create pop up. Right?
No.

Most GUI applications are included in a JFrame. It is one of the four types of top-level (Swing) Component. More details in the Java™ Tutorials.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!