private void sqrtActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sqrtActionPerformed
        if (!"".equals(text.getText())) {
            double value = Double.parseDouble(text.getText());
            value = Math.sqrt(value);
            if (value >= 0) {
                printer(value);
            } else {
                JOptionPane.showMessageDialog(rootPane, "Argument under Root should be > 0");
                text.setText("");
            }
        }
    }//GEN-LAST:event_sqrtActionPerformed