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 a container have multiple layout managers? 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 a container have multiple layout managers?" Watch "Can a container have multiple layout managers?" New topic
Author

Can a container have multiple layout managers?

smyle khanna
Ranch Hand

Joined: Jan 14, 2004
Posts: 54
Hi ..
this question has 2 options true and false...
and i have searched a lot and every time i get mixed response for this..

plzz guide me through

Smyle
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9152
    
    9

Look at the method setLayout() in the Java Documentation for java.awt.Container. Does that answer your question?


[How To Ask Questions On JavaRanch]
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
A container can have only one layout manager but may also contain components that each have a different layout manager.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can a container have multiple layout managers?
 
It's not a secret anymore!