Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can you use a gridlayout with a borderlayout?

 
gary davis
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know can you use a gridlayout and a borderlayout in the same class.
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch gary.
A container can have only one LayoutManager. However, a container inside another can have its own layout manager regardless the one of the parent container.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic