我有atttributes針,發送者名稱,receivername,senderphone,量和屬性腳,發出者receivername,senderphone,量,BANKNAME,賬號另一種形式AccountFrom賬號cashform ..動作事件文本框檢查
形式都具有發送命令 現在,我要檢查的文本框是否爲空當用戶點擊發送按鈕...
我嘗試了這種方式
if (ae.getCommand() == send && ae.getSource()==cashpayform){
cashcheck();
}
if (ae.getCommand() == send && ae.getSource()==accpayform){
acccheck();
}
,但它不工作有人能幫助我 thanx
檢查和包裝「發送」和「cashpayform」等引號。什麼是Cashcheck()和acccheck()。 – Balanivash
你的咒語是相同的。cashcheck和acccheck是檢查空字段的方法 – RNZN
嘗試使用引號將'send''cashpayform'換行 – Balanivash