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.

inside custom component

Java Development

Reply
Developer
Posts: 107
Registered: ‎08-08-2008
My Device: Not Specified
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();
    }
 

Developer
Posts: 107
Registered: ‎08-08-2008
My Device: Not Specified

Re: Dialog box with editable fields

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