Midlet TextBox



-------------------
TextBox tb = new TextBox("title", null, 5, TextField.DECIMAL);
tb.addCommand(new Command("Ok", Command.BACK, 0));
tb.setCommandListener(this);

Display dis = Display.getDisplay(this);
dis.setCurrent(tb);
-------------------

The code above shows (in my mobile Sony Ericsson K300i) a TextBox with 2 Commands "Ok" and "Ok".

If TextBox is empty of chars, first "Ok" is grayed but second not.

I suspect that the first Command "Ok" is part of TextBox (Screen) and when I press it, it does nothing and commandAction method does not run. Only when I press the second Command "Ok" commandAction method runs.

So, first "Ok" is "feature" of my mobile or it is in MIDP Specification?
If the second, how can I get access to this Command?
.



Relevant Pages

  • Re: Autonumber Oddity
    ... >> I have a form with one textbox (PermitNumber) where the default value ... >> assign a second custom autonumber at the click of a command button ... Private Sub Command7_Click ...
    (comp.databases.ms-access)
  • Re: Problem with button on form
    ... leave the Operator_Id textbox without validating. ... BEFORE it recognizes any input from the command buttons. ... Operator_ID Exit ... then you can tie the validation to one of those controls. ...
    (microsoft.public.access.forms)
  • Re: Unusual Return Symbol
    ... I created a userform with one textbox and one command button. ... I do see square boxes when the mouse ...
    (microsoft.public.word.vba.userforms)
  • Re: Add multiple sequential records in Access
    ... The second textbox should be labeled Last File Number. ... and the missing ones will be added. ... The first command button causes all of the above to happen. ... What sequence? ...
    (microsoft.public.access.modulesdaovba)
  • Re: New to .NET
    ... > want the textbox to display a value from the Access database ... > when the command ... I strongly recommend you go pick up a decent book. ...
    (microsoft.public.dotnet.general)