I have cashform with atttributes pin,sendername,receivername,senderphone,amount and another form accountfrom with attributes pin,sendername receivername,senderphone,amount,bankname,account number..
both form have send Command Now, I want to check whether the textfields are empty when the user clicks send button...
I tried it in this way
if ( ae.getCommand() == send && ae.getSource()==cashpayform){
cashcheck();
}
if ( ae.getCommand() == send && ae.getSource()==accpayform){
acccheck();
}
but its not working can anyone help me thanx