((JPopupMenu) widget).removeAll();
for (int i = 0; i < menuComponents.length; i++) {
((JPopupMenu) widget).add(menuComponents[i]);
}
menu.setPreferredSize(menu.getPreferredSize());
menu.doLayout();
this.hotspotPoint = new Point(attached.getWidth() / 2, attached.getHeight() / 2);
attach();
}
}
}