JScrollPopupMenu works for population in loop

Method addMenuItems not working