private JComponent createMenuTitle(String title){
  JLabel label=new JLabel(title);
  label.setBorder(BorderFactory.createEmptyBorder(5,4,10,0));
  return label;
}

private JComponent createMenuTitle ( String title ) { JLabel label = new JLabel ( title ) ; label . setBorder ( BorderFactory . createEmptyBorder ( 5 , 4 , 10 , 0 ) ) ; return label ; }
create title for a sumbenu .
