import java.awt.* ; import java.awt.event.* ; import javax.swing.* ; import javax.script.ScriptEngine ; import javax.script.ScriptEngineManager ; import javax.script.ScriptException ; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author jeisonnisperuza */ public class Calculadora extends JFrame implements ActionListener { // argumentos y componentes private JFrame frame ; private JPanel panel1 = new JPanel (); private JPanel panel2 = new JPanel (); private JTextField texto , campoTexto1 , campoTexto2 ; private String resultado ; private String formula = "" ; private int a = 0 ; // constructor public Calculadora () { setDefaultCloseOperation ( Calculadora . EXIT_ON_CLOSE ); Container con