private JLabel addNotificationCategoryLabel(JPanel panel,String categoryName){
  JLabel jlbl=new JLabel(categoryName);
  panel.add(jlbl);
  return jlbl;
}

private JLabel addNotificationCategoryLabel ( JPanel panel , String categoryName ) { JLabel jlbl = new JLabel ( categoryName ) ; panel . add ( jlbl ) ; return jlbl ; }
adds a new category label to the notifications list .
