code: public static void addComponent(final GridBagLayout gbl, final GridBagConstraints gbc,
  		final int anchor, final int fill, final Insets insets, final int gridx, final int gridy,
  		final int gridwidth, final int gridheight, final double weightx, final double weighty,
  		final Component addComponentToPanel, final Container panelToAdd)
  	{
  		gbc.anchor = anchor;
  		gbc.fill = fill;
  		gbc.insets = insets;
  		gbc.gridx = gridx;
  		gbc.gridy = gridy;
  		gbc.gridwidth = gridwidth;
  		gbc.gridheight = gridheight;
  		gbc.weightx = weightx;
  		gbc.weighty = weighty;
  		gbl.setConstraints(addComponentToPanel, gbc);
  		panelToAdd.add(addComponentToPanel);
  	}
docs: Adds the component.
  
  @param gbl
  the gbl
  @param gbc
  the gbc
  @param anchor
  the anchor
  @param fill
  the fill
  @param insets
  the insets
  @param gridx
  the gridx
  @param gridy
  the gridy
  @param gridwidth
  the gridwidth
  @param gridheight
  the gridheight
  @param weightx
  the weightx
  @param weighty
  the weighty
  @param addComponentToPanel
  the add component to panel
  @param panelToAdd
  the panel to add