Why the command button is not being displayed in my emulator?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpuser123
    New Member
    • Dec 2009
    • 108

    Why the command button is not being displayed in my emulator?

    I have already added 5 cammands in a form and I want to add a sixth but It does not display the sixth?

    I am posting my codes below.

    Code:
     public Command getOk_Lastjourney() {
            if (Ok_Lastjourney == null) {
                // write pre-init user code here
                Ok_Lastjourney = new Command("Last Journey", Command.OK, 0);
                // write post-init user code here
            }
            return Ok_Lastjourney;
        }
    
    
    public Form getFrm_planjourney() {
            if (frm_planjourney == null) {                                 
                // write pre-init user code here
                frm_planjourney = new Form("Plan journey", new Item[] { getTxt_From(), getTxt_To(), getCg_usertype(), getCg_userpref(), getCg_searchalgo() });                                    
                frm_planjourney.addCommand(getExt_planjourney());
                frm_planjourney.addCommand(getOk_planjourney());
                frm_planjourney.addCommand(getOk_planFare());
                frm_planjourney.addCommand(getOk_planDistance());
                frm_planjourney.addCommand(getOk_planTime());
                frm_planjourney.addCommand(getOk_planRoute());
                frm_planjourney.setCommandListener(this);                                  
                // write post-init user code here
                System.out.println("Appending.....");
                
                System.out.println("Append completed...");
                System.out.println(frm_planjourney.size());
                frm_planjourney.setItemStateListener(this);
            }                         
            return frm_planjourney;
        }
Working...