this.caller = caller;
}
@Override
public void actionPerformed(ActionEvent e) {
AutomatConstructor a = new AutomatConstructor();
Expression ex = new Expression(caller.input.getText(),true);
if(ex.isValid()){
caller.app.setAutomat(a.Construct(ex));
caller.log.add(a.getLog());
caller.log.repaint();
caller.setCanvasImage(caller.app.generateGraphFile());
}
else
JOptionPane.showMessageDialog(caller, "Invalid expression!");