yes, i have a added a buttonpresslistener in the following way:

submit.getButtonPressListeners().add(new ButtonPressListener() {                
                        
                        public void buttonPressed(Button button) {
                                String firstName = fname.getText();
                                                                
                                Form.Flag flag = null;
                                if(flag == null){
                                        bean = new Bean(firstName, lastName, 
password, c1, c2, r1, r2, r3);
                                        ITest dao = new ITestDao();
                                        if(dao.testCase(bean)){
                                                Alert.alert(MessageType.INFO, 
"SUCCESSFULL...", CheckBoxTest.this);
                                        }
                                        else{
                                                Alert.alert(MessageType.INFO, 
"ERROR_Please Try After Some time...",
CheckBoxTest.this);
                                        }
                                }
                                else{
                                        Alert.alert(MessageType.INFO, 
"ERROR:_Please Try Again...",
CheckBoxTest.this);
                                }
                        }
                });

-----
santosh pavan raju
--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/Hi-tp3470619p3473020.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to