03-18-2010, 11:57 AM
|
#1 (permalink)
|
| New Member
Join Date: May 2009 Model: 8100 PIN: N/A Carrier: airtel
Posts: 14
Post Thanks: 0 Thanked 0 Times in 0 Posts
| Setfocus problem with fieldChanged Please Login to Remove! Hi
I have two buttons Save and Cancel on clicking cancel button i will get a dialog asking confirmation having ok & cancel buttons. if i press cancel button the control should come back to Cancel button of the screen. it is coming but its not getting painted. What i am doing is calling cancelbutton.setFocus & calling invalidate(). Still its not shown. Any idea what could be the problem ??
the code is as follows
if(field == buttonDecline){
int result = Dialog.ask("Decline",buttonvalues,values,value[0]);
if(result == 1){
buttonDecline.setFocus();
invalidate();
}
} |
| Offline
| |