07-21-2009 05:02 AM
hi,
i've loaded project on which i was working few monts ago cause i need to update smth. before i did anything i've tried to compile it and got few errors about TextField! i've used it in few places, and now it seems that "the constructor is undefinied". i've checked 4.5 and 4.6 api and there is no constructor for it! what happened? my application was using TextFields and was working fine, what has happened now?
07-21-2009 05:12 AM
07-21-2009 05:20 AM
i do not understand what's Your point.. there is no TextField() constructor! take a look in the api:
http://www.blackberry.com/developers/docs/4.2.1api
07-21-2009 05:26 AM
In 4.5 API set there are 4 constructors..
public TextField();
public TextField(long);
public TextField(String, String);
public TextField(String, String, int, long);
Cheers...
07-21-2009 05:28 AM
07-21-2009 05:31 AM
07-21-2009 05:33 AM
07-21-2009 05:42 AM - last edited on 07-21-2009 05:46 AM
in the 4.2.1 jar
// Method descriptor #647 ()V
public native TextField();
// Method descriptor #653 (J)V
public native TextField(long arg0);
// Method descriptor #655 (Ljava/lang/String;Ljava/lang/String
V
public native TextField(java.lang.String arg0, java.lang.String arg1);
// Method descriptor #658 (Ljava/lang/String;Ljava/lang/String;IJ)V
public native TextField(java.lang.String arg0, java.lang.String arg1, int arg2, long arg3);
seems they are not listed in the API doc, that's all. you can use them.
07-21-2009 05:43 AM
but there was cause i was using it for few months!
eh.. do You maybe know how can i replace it? using what? i've tried to use LabelField, but TextField was better, it has-par example "setCursor()" method which i must use. if i use LabelFIeld on a manager and add too much text, then the text would be cut. for a TextField it is nicer-and when i setText() for which there is no space anymore, the text from the up will move up, and the new text is visible-it is like in console.. i hope i wrote clearly what the problem is..
does any of You know how can i replace it?
regards
07-21-2009 05:46 AM