package fenetres.create_act; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; import javax.swing.Action; import javax.swing.JOptionPane; import cXML.node; import fenetres.baliseStyle; public class actEvalNumeroAbsoluePageOui extends AbstractAction{ /** * */ private static final long serialVersionUID = 1L; { putValue( Action.NAME, "Oui, combien de point?" ); putValue( Action.SHORT_DESCRIPTION, "Evaluer le numéro absolue de la page" ); } @Override public void actionPerformed(ActionEvent e) { node nod = (node) fenetres.create.getSelectNode().getUserObject(); int point = 0; if(nod.getAttributs().get("evalNumeroAbsoluePage")!=null) { point = Integer.valueOf(nod.getAttributs().get("evalNumeroAbsoluePage")); } String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point); if(!a.isEmpty()) { try { point = Integer.valueOf(a); if(point<=0) { nod.getAttributs().put("evalNumeroAbsoluePage", String.valueOf(0)); fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()); fenetres.create.getTextNodeSelect().setText("