This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Can you use a gridlayout with a borderlayout? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can you use a gridlayout with a borderlayout?" Watch "Can you use a gridlayout with a borderlayout?" New topic
Author

Can you use a gridlayout with a borderlayout?

gary davis
Greenhorn

Joined: Nov 15, 2003
Posts: 7
I would like to know can you use a gridlayout and a borderlayout in the same class.
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
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.


SCJP2. Please Indent your code using UBB Code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can you use a gridlayout with a borderlayout?
 
It's not a secret anymore!