question: private void addInfo ( JPanel panel , String key , String value ) { lgbc . gridx = 0 ; lgbc . anchor = GridBagConstraints . WEST ; panel . add ( new JLabel ( key ) , lgbc ) ; lgbc . gridx = 1 ; lgbc . anchor = GridBagConstraints . EAST ; panel . add ( new JLabel ( StringUtil . shortenTo ( value , 35 , 20 ) ) , lgbc ) ; lgbc . gridy ++ ; }
target:  Adds a info line with separated key and value.