This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 8876
    
    8

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


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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?