I have an error in my code. How do I fix this error? I'm doing Java with NetBeans in the JFrame form.
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - Erroneous symbol type: javax.swing.JTextField.isEmpty
private void ictoaixctionorjava.awt.event.ActionEvent evt) {
message.setText("You must enter a firstname, lastname, email, and phone number");
} else {
String firstName = firstname.getText();
String lastName = lastname.getText();
String email = Email.getText();
String phoneNumber = PhoneNumber.getText();
//update database
options.addAddress(firstName, lastName, email, phoneNumber);
//update table
updateTable();
message.setText("New address is successfully added");
}