/**
* Adds the given {@link Action}s to the {@link #popupMenu}.
*
* @param actions
* the actions which should be added to the menu
*/
public void addActions(Action... actions) {
for (Action action : actions) {
JRadioButtonMenuItem item = new JRadioButtonMenuItem(action);
item.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
updateSelectionStatus();
}
});
popupMenuGroup.add(item);
popupMenu.add(item);
}
}
CompositeMenuToggleButton.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:rapidminer
作者:
评论列表
文章目录