analyseWriter/src/fenetres/create_act/actEvaluer.java

34 lines
947 B
Java
Raw Normal View History

2022-06-19 21:01:30 +02:00
package fenetres.create_act;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import fenetres.create;
import fenetres.evaluate;
public class actEvaluer extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Evaluer" );
2022-12-08 21:35:00 +01:00
putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/resources/evaluate.png") ) );
2022-06-19 21:01:30 +02:00
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E );
putValue( Action.SHORT_DESCRIPTION, "Evaluer un node (CTRL+E)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_DOWN_MASK) );
}
@Override
public void actionPerformed(ActionEvent e) {
evaluate.getInstance();
2022-06-19 21:01:30 +02:00
create.getInstance().dispose();
}
}