question: 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 ) ; }
target:  Adds a new horizontal separator to the keybinds list. The JSeparator spans 2 columns.