Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JPanel vs. Box Class  RSS feed

 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Which is a preferable way of definining containers in my Swing application: JPanel or Box Class?
thanks,
Alex
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on what you want. If there was one way to do everything there would be alot less classes to build a GUI.
 
Alex Kravets
Ranch Hand
Posts: 476
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, but which would make GUI load faster. I know they are both lightweight, but which one has loading time advantage?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!