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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.