Tutorial Step 4 Step 6

Creating a UI with nested layouts

Step 5: Creating combo boxes

  1. Return to Frame1.java and put two JComboBox components from the palette's Swing tab into panel 6. You can just drop them into the panel at their default size if you like.

    In a real application, you would populate them with items, and their width would be determined by the layout manager based on the longest item in the list. For now, just make sure they are completely contained by panel 6, and let the layout manager set their size.

  2. Select both combo boxes and change their background property to white.

  3. Save your work.
Your UI should resemble the one below:

Tutorial Step 4 Step 6