private void addComponent(JPanel panel,GridBagLayout gbl,Component c,int x,int y,int width,int height,int fill,double weightx,double weighty,Insets insets){
  GridBagConstraints gbc=new GridBagConstraints();
  gbc.gridx=x;
  gbc.gridy=y;
  gbc.gridwidth=width;
  gbc.gridheight=height;
  gbc.fill=fill;
  gbc.weightx=weightx;
  gbc.weighty=weighty;
  gbc.insets=insets;
  gbl.setConstraints(c,gbc);
  panel.add(c);
}

private void addComponent ( JPanel panel , GridBagLayout gbl , Component c , int x , int y , int width , int height , int fill , double weightx , double weighty , Insets insets ) { GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . gridx = x ; gbc . gridy = y ; gbc . gridwidth = width ; gbc . gridheight = height ; gbc . fill = fill ; gbc . weightx = weightx ; gbc . weighty = weighty ; gbc . insets = insets ; gbl . setConstraints ( c , gbc ) ; panel . add ( c ) ; }
adds a component to this panel
