English 中文(简体)
j2me 案文领域制约因素
原标题:j2me set textfield constraints

我不得不在中文本。 日期改为格式(DD.MM.YYYYYYYY),第二行仅致送一封信。 第1个案文领域只接受编号和标语,第2个文号,这是否有可能确定这些制约因素?

最佳回答

只接收一个编号非常容易,即Text Field ——适当使用maxSize,在构造或中排在MaxSize <>。

不可能确定这样的制约因素,即一个案文领域只接受数字和剂量。

  • To get an input like you describe, I would probably just use three NUMERIC text fields instead - for user to enter DD, MM and YYYY digits respectively
问题回答

暂无回答




相关问题
add text in http request string url

ok i made a midlet through which i can connect to server pages and get soem information as response. For example i made a midlet through which i acced url: http://example.com/?u=nepal&t=1 Now i ...

Do I have to do a setSize() on a Vector before using it?

Given private final Vector v = new Vector(); //instance variable the following 3 lines are in an instance method in the same class. 1. int length = v.capacity(); 2. int size = v.size(); ...

Is the situation with Java ME improving?

It seems to be the consensus that developing for Java ME is not as cross platform as you might expect, particularly compared to say java SE, but it is difficult to assess how the situation is evolving....

Privileged operations in netbeans mobility

I m writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background ...

ClassFormatError: 56 while using hessian in j2me

I am trying to use the hessian j2me implementation @ http://hessian.caucho.com/ using java me sdk 3.0. http://hessian.caucho.com/doc/hessian-overview.xtp#Hessian%20Client%20for%20a%20cell-phone ...