code: public void addGridDetailItems(TableModel model, GridBagLayout gridbag, GridBagConstraints c)
      {
          m_vComponentCache = new Vector<ComponentCache>();
  
          for (int iRow = 0; iRow < model.getRowCount(); iRow++)
          {
              c.weightx = 0.0;
              c.gridwidth = 1;
              c.anchor = GridBagConstraints.EAST;     // Edit boxes right justified
              c.insets.right = 5;                     // Add a few pixels of white space to the right
              this.addGridDetailItem(model, iRow, gridbag, c);
          }
      }
docs: Read through the table model and add add the items to the grid panel.
  @param model The table model to read through.
  @param gridbag The screen layout.
  @param c The constraint to use.