private void igualActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_igualActionPerformed
        y=Double.parseDouble(cuadro.getText());
        numero="";
        if(signo=='+')
        {
                resp=x+y;
                cuadro.setText(resp+"");
        }
        
        if(signo=='-')
        {
                resp=x-y;
                cuadro.setText(resp+"");
        }
        if(signo=='*')
        {
                resp=x*y;
                cuadro.setText(resp+"");
        }
        if(signo=='/')
        {
            if(y!=0) {
                resp=x/y;
                cuadro.setText(resp+"");
            }                
            else
                cuadro.setText("Error: division por cero");
        }
        
        if(signo=='p')
        {
                resp=Math.pow(x,y);
                cuadro.setText(resp+"");
        }      
        
        if(signo=='%')
        {
                resp=y/100;
                cuadro.setText(x*resp+"");
        }      
    }//GEN-LAST:event_igualActionPerformed