private void jButton1ActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButton1ActionPerformed Evaluation obj = new Evaluation(); String input = jTextField1.getText(); float ans = obj.calculate(input); String ans1 = "" + ans; if (ans == 34097) { jLabel2.setText("Invalid Expression "); jLabel2.show(); } else { jLabel2.setText(ans1); jLabel2.show(); } } // GEN-LAST:event_jButton1ActionPerformed