private JLabel addKeybindLabel(JPanel panel,String labelText){
  GridBagConstraints gbc=new GridBagConstraints();
  gbc.anchor=GridBagConstraints.WEST;
  gbc.insets=new Insets(0,0,5,0);
  gbc.gridx=0;
  gbc.gridy=keybindLabelGridYCounter++;
  gbc.weightx=20;
  JLabel jlbl=new JLabel(labelText);
  panel.add(jlbl,gbc);
  return jlbl;
}

private JLabel addKeybindLabel ( JPanel panel , String labelText ) { GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . WEST ; gbc . insets = new Insets ( 0 , 0 , 5 , 0 ) ; gbc . gridx = 0 ; gbc . gridy = keybindLabelGridYCounter ++ ; gbc . weightx = 20 ; JLabel jlbl = new JLabel ( labelText ) ; panel . add ( jlbl , gbc ) ; return jlbl ; }
adds a new label to the keybinds list . this should be used in conjunction with adding a button in a 1 : 1 ratio . the new label will be added below the existing ones .
