analyseWriter/src/action/actEvaluer.java

35 lines
963 B
Java
Raw Normal View History

package action;
2022-06-19 21:01:30 +02:00
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();
2023-02-18 18:05:42 +01:00
create.isDispose=true;
2022-06-19 21:01:30 +02:00
}
}