public void actionPerformed(ActionEvent e) {
int pos = mList.getList().getSelectedIndex();
if (pos < 0) {
pos = mList.getList().getModel().getSize();
}
mList.addElement(pos, new SeparatorMenuItem());
mList.getList().setSelectedIndex(pos);
mList.getList().ensureIndexIsVisible(pos);
}
});