Q7. Which of the following layout managers does not alter the height of a component? (a)BorderLayout (b)GridBagLayout (c)CardLayout (d)FlowLayout The answer mentioned is (d).Does (c) alter the height ???
In a CardLayout, there is a single component per "Card" - typically a Panel but it could be any Component. That Component is always shown at the full size of the Container having the CardLayout. If you have any question about anything in the Java 2 Exam Cram or Java 2 Exam Prep book, write me at wbrogden@bga.com Bill