code: public static void addToGridBag(final Component comp, final JPanel panel, final int gridx, final int gridy,
              final int width, final int height, final int anchor, final int padding, final double weightx,
              final double weighty) {
          addToGridBag(comp, panel, gridx, gridy, width, height, anchor, padding, weightx, weighty,
                  GridBagConstraints.HORIZONTAL);
      }
docs: Adds a component to a panel with a grid bag layout
  
  @param comp
  @param panel
  @param gridx
  @param gridy
  @param width
  @param height
  @param anchor
  @param padding