add(i1);
add(i2);
add(i3);
JMenu m1 = new JMenu("Set object states to");
JMenuItem activeItem =
new JMenuItem(new ChangeObjectState(pids, "Active"));
JMenuItem inactiveItem =
new JMenuItem(new ChangeObjectState(pids, "Inactive"));
JMenuItem deletedItem =
new JMenuItem(new ChangeObjectState(pids, "Deleted"));
m1.add(activeItem);
m1.add(inactiveItem);
m1.add(deletedItem);
add(m1);
}