CompositeMenuToggleButton.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:rapidminer 作者:
/**
 * 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);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号