aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes java.awt Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "java.awt" Watch "java.awt" New topic
Author

java.awt

Basu Patel
Ranch Hand

Joined: May 28, 2000
Posts: 60
Which of the following layout managers honors the preferred size of a component:

1 CardLayout
2 FlowLayout
3 BorderLayout
4 GridLayout


<BR>Contact Me<BR> <A HREF="mailto:basu_patel@usa.net" rel="nofollow">basu_patel@usa.net</A> <P>
swati bannore
Ranch Hand

Joined: Oct 18, 2000
Posts: 201
1.FlowLayout always honours a component's preferred size.
2.GridLayout does not honour a component's preferred size.
3.Border Layout does somthing in between.
It honours the prefferd height of North and South Components. and
It honours the preferred Width of South and West components
4. CradLayout - I am not sure
thanx
[This message has been edited by swati bannore (edited July 16, 2001).]


Swati Kale
SCJP
SCWCD
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.awt