code: public void addGridHeading()
      {
          JPanel panel = new JPanel();
          panel.setOpaque(false);
          panel.setAlignmentX(LEFT_ALIGNMENT);
          panel.setAlignmentY(TOP_ALIGNMENT);
          this.add(panel);
          panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
          
          m_rgcompHeadings = new JLabel[this.getModel().getColumnCount()];
          for (int iColumnIndex = 0; iColumnIndex < m_rgcompHeadings.length; iColumnIndex++)
          {
              panel.add(m_rgcompHeadings[iColumnIndex] = new JLabel(this.getModel().getColumnName(iColumnIndex) + " "));
          }
      }
docs: Add the column <quantity> <description> headings to the grid panel.