Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
ipcTony
Posts: 107
Registered: ‎08-08-2008
Accepted Solution

Dialog box with editable fields

Hi, I created a dialog box with a BasicEditField but when i run the app I can't enter any alphanumeric data in the edit field.

Can some one see where i went wrong?

 

    // Constructor
    BasicEditField _orderno = new BasicEditField("Order #: ", "", 10, BasicEditField.FIELD_LEFT | BasicEditField.EDITABLE);
   ObjectListField _orderList = new ObjectListField(ObjectListField.USE_ALL_HEIGHT | ObjectListField.USE_ALL_WIDTH );

 

   public SetOrderNumberDialog()
    {
        super(" Set Order Number", null, null, 0, My.mLogo, Field.FOCUSABLE | Field.FIELD_HCENTER);
        add(new SeparatorField() );
        add(_orderList);
        add(new SeparatorField() );
        _orderList.setSelectedIndex(0);
        add(_orderno);       
        getOrderList();
    }
 

Please use plain text.
Developer
ipcTony
Posts: 107
Registered: ‎08-08-2008

Re: Dialog box with editable fields

Sorry my fault. I guess I overide the keyChar() and this is why no character keys were accepted.
Please use plain text.