Layout Managers Flashcards
BorderLayout is default for…
Content pane of JFrame, JDialog and JApplet
BorderLayout
Seperates window into different sections
BorderLayout areas
North, South, East, West, Center
North
PAGE-START
South
PAGE_END
East
LINE_END
West
LINE_START
Center
CENTER
BoxLayout
Puts components in single row or column
BoxLayout Formatting Options
Respects components max sizes
Lets you align components
CardLayout
Lets you implement an area that contains different components at different times
CardLayout Controlled By
Controlled by combo box w/ state of combo box determining which panel (group of components) to display
CardLayout Alternative
Using a tabbed pane provides similar functionality but with a pre-defined GUI
FlowLayout
Lays out components in a single row
Starts new row if container is not wide enough
FlowLayout Default
Default for javax.swing.JPanel