void addTitle(String title){
  JLabel titleLabel=new JLabel(StringUtil.shortenTo(title,48,34));
  titleLabel.setBorder(BorderFactory.createMatteBorder(0,0,1,0,Color.BLACK));
  gbc.fill=GridBagConstraints.HORIZONTAL;
  gbc.insets=TITLE_INSETS;
  gbc.anchor=GridBagConstraints.WEST;
  gbc.weightx=1;
  add(titleLabel,gbc);
  gbc.gridy++;
}

void addTitle ( String title ) { JLabel titleLabel = new JLabel ( StringUtil . shortenTo ( title , 48 , 34 ) ) ; titleLabel . setBorder ( BorderFactory . createMatteBorder ( 0 , 0 , 1 , 0 , Color . BLACK ) ) ; gbc . fill = GridBagConstraints . HORIZONTAL ; gbc . insets = TITLE_INSETS ; gbc . anchor = GridBagConstraints . WEST ; gbc . weightx = 1 ; add ( titleLabel , gbc ) ; gbc . gridy ++ ; }
adds a title ( label with seperating line ) .
