package fenetres.create_act; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.ImageIcon; import cXML.node; import fenetres.create; public class actAddMenuTrue extends AbstractAction{ /** * */ private static final long serialVersionUID = 1L; { putValue( Action.NAME, "true" ); putValue( Action.SHORT_DESCRIPTION, "true" ); putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/truemini.png"))); } @Override public void actionPerformed(ActionEvent e) { node nod = (node) fenetres.create.getSelectNode().getUserObject(); nod.addMenu(true); fenetres.create.getTextNodeSelect().refreshAffichage(nod); } }