Creating a UI with nested layouts
Step 2: Adding panels 5 and 6
Using the same method as in step 1, draw two panels inside panel 2 making them almost as wide as panel 2.
- The first (panel 5) should fill approximately the top two thirds of panel 2 and will be the panel that contains the toolbars.
- The second (panel 6) should fill the rest of panel 2 and will contain the
JComboBox
components for font name and font point size.
Did you remember to change the new panels to XYLayout
or null
layout?