private void addKeybindCategorySeparator(JPanel panel){
  GridBagConstraints gbc=new GridBagConstraints();
  gbc.anchor=GridBagConstraints.CENTER;
  gbc.fill=GridBagConstraints.HORIZONTAL;
  gbc.insets=new Insets(0,0,0,0);
  gbc.gridx=0;
  gbc.gridy=keybindButtonGridYCounter++;
  keybindLabelGridYCounter++;
  gbc.gridwidth=2;
  panel.add(Box.createVerticalStrut(7),gbc);
  JSeparator jsep=new JSeparator(SwingConstants.HORIZONTAL);
  panel.add(jsep,gbc);
  panel.add(Box.createVerticalStrut(7),gbc);
}

private void addKeybindCategorySeparator ( JPanel panel ) { GridBagConstraints gbc = new GridBagConstraints ( ) ; gbc . anchor = GridBagConstraints . CENTER ; gbc . fill = GridBagConstraints . HORIZONTAL ; gbc . insets = new Insets ( 0 , 0 , 0 , 0 ) ; gbc . gridx = 0 ; gbc . gridy = keybindButtonGridYCounter ++ ; keybindLabelGridYCounter ++ ; gbc . gridwidth = 2 ; panel . add ( Box . createVerticalStrut ( 7 ) , gbc ) ; JSeparator jsep = new JSeparator ( SwingConstants . HORIZONTAL ) ; panel . add ( jsep , gbc ) ; panel . add ( Box . createVerticalStrut ( 7 ) , gbc ) ; }
adds a new horizontal separator to the keybinds list . the jseparator spans 2 columns .
