i want to make required field validator in java netbeans
on textfield and press button if textfield null or example the textfield required string no integer how do it

Re: how to make required field validator in java netbeans 80 80

ehm ... a textfield will always contain a String, even if you input numbers.
something like

actionPerformed(ActionEvent e){
 if ( myTextField.getText().equals("")){
  // print error message
  return; // or throw an Exception
  }
  // normal flow
}

should do the trick

but this is not in the least related to NetBeans.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.