title: I can't get my JLabels to show. I'm not sure if I placed them in the wrong position in the BorderLayout. Help! My code is below
body: <p>This is the main class where JLabels and lists are initialized: </p>
  
  <pre><code>public dutchessHousing() {
      super("Plan options");
      contents = getContentPane();
      contents.setLayout(new BorderLayout());
  
      selections = new JLabel (suiteList[0]); 
      suitesScrollPane = new JScrollPane(suites);
      meals = new JList&lt;String&gt;(mealList);
      housingOptions = new JLabel();
      mealOptions = new JLabel();
      total = new JLabel();
  
  
      contents.add(suitesScrollPane, BorderLayout.EAST);
      contents.add(selections, BorderLayout.CENTER);
      contents.add(meals, BorderLayout.SOUTH); 
      contents.add(total, BorderLayout.WEST);
  
      setSize(750, 700);
      addComponent();
      showCalculations();
      setVisible(true);
  
  }
  </code></pre>
  
  <p>Method to show calculations in frame. housingOptions is supposed to show on the top of the frame, before the JList.</p>
  
  <pre><code>public static void showCalculations() {
          housingOptions = new JLabel("Choose one of the following housing options: ", JLabel.CENTER);
          mealOptions = new JLabel("Choose one of the following meal plan options: ", JLabel.CENTER);
          total = new JLabel();
          housingOptions.setLayout(new BorderLayout());
          contents.add(housingOptions);
          contents.add(mealOptions);
          contents.add(total);
  
  
  
          }
  </code></pre>
  
  <p>Main method:</p>
  
  <pre><code>public static void main(String[] args) {
      dutchessHousing frame = new dutchessHousing();
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.add(selections);
      frame.add(suitesScrollPane);
      frame.add(meals);
      //frame.add(housingOptions);
      frame.add(mealOptions);
      frame.add(total);
  
      showCalculations();
      frame.setVisible(true);
  </code></pre>
  
  <p>}
  }</p>