MenuItem item = new MenuItem(ADDNEW);
item.addActionListener(this);
popup.add(item);
+ if (aa == null)
+ {
+
+ popup.show(this, evt.getX(), evt.getY());
+ return;
+ }
+ // add the rest if there are actually rows to show
item = new MenuItem(EDITNAME);
item.addActionListener(this);
popup.add(item);