Can anybody help me what I'm doing wrong here?
Grot
private void convertDtoEActionPerformed(java.awt.event.ActionEvent evt) { double sol = (Double.parseDouble(usdInput.getText()) * 0.7715); if (usdInput.getText().isEmpty()){ JOptionPane.showMessageDialog(null, "One of the required field is empty!", "Error", JOptionPane.ERROR_MESSAGE); } else{ euroOutput.setText(usdInput.getText() +" USD = " + sol + " Euro"); convertDtoE.setEnabled(false); }