question: 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 ; }
target:  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.