private JLabel addKeybindCategoryLabel(JPanel panel,String categoryName){
  GridBagConstraints gbc=new GridBagConstraints();
  gbc.anchor=GridBagConstraints.WEST;
  gbc.gridx=0;
  if (keybindLabelGridYCounter == 0)   gbc.insets=new Insets(0,0,0,0);
 else   gbc.insets=new Insets(7,0,0,0);
  gbc.gridy=keybindLabelGridYCounter++;
  keybindButtonGridYCounter++;
  gbc.weightx=20;
  gbc.gridwidth=2;
  JLabel jlbl=new JLabel(categoryName);
  panel.add(jlbl,gbc);
  return jlbl;
}

private JLabel addKeybindCategoryLabel ( JPanel panel , String categoryName ) { GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . WEST ; gbc . gridx = 0 ; if ( keybindLabelGridYCounter == 0 ) gbc . insets = new Insets ( 0 , 0 , 0 , 0 ) ; else gbc . insets = new Insets ( 7 , 0 , 0 , 0 ) ; gbc . gridy = keybindLabelGridYCounter ++ ; keybindButtonGridYCounter ++ ; gbc . weightx = 20 ; gbc . gridwidth = 2 ; JLabel jlbl = new JLabel ( categoryName ) ; panel . add ( jlbl , gbc ) ; return jlbl ; }
adds a new category label to the keybinds list . the jlabel spans 2 columns .
