hi
please help me to develop code for JTextField exception handling. i have 10 JTextFields out of which 2 are necessary to fill. if the user left them blank then error message will appear.
try{
text1=a.getText();
text2=b.getText();
while(a!= null && b!=null);}
catch(Exception e){
System.out.println("Please write some text" +e.getMessage());}
this code is not working. the program is not responding after this code. why??
please help.