Page 1 of 1

java-se to j2me

Posted: Thu Jan 14, 2010 7:47 pm
by Rksk
Dear expert,

I tried to convert a java-se code to j2me.
it success some what, but the following line is not work on j2me.

int charAt = Integer.parseInt((new StringBuilder()).append("").append(NUM.charAt(i)).toString());

I have attached the full class. Please help.
java.zip
MY CLASS
(563 Bytes) Downloaded 483 times

Re: java-se to j2me

Posted: Sat Jan 16, 2010 4:14 am
by Neo
According to what I have found, all these functions are working fine in J2ME.
Can you check each function separately with error handling (try/catch) to see where is the problem.
When you find the problematic part, post it here so we can check on that.

Re: java-se to j2me

Posted: Sat Jan 16, 2010 9:58 pm
by Rksk
Thank you, i'll try and reply.

Re: java-se to j2me

Posted: Sun Jan 17, 2010 3:42 pm
by Rksk
Dear expert,
I fogot to tell that, the above line shows an error in J2ME SDK 3.0 as below,

cannot find symbol
symbol: constructor StringBuilder()
location: class StringBuilder

cannot find symbol
symbol: class StringBuilder
location: class Verifier

Re: java-se to j2me

Posted: Mon Jan 18, 2010 12:08 am
by Neo
StringBuilder isn't available in J2ME. Use StringBuffer instead.

Re: java-se to j2me

Posted: Thu Jan 21, 2010 4:22 pm
by Rksk
Thanks a lot, it is ok.
you can see my product, visit <link removed> and download "Master password generator for nokia".

thank you again.

Re: LWUIT Dialog

Posted: Sat Jun 23, 2012 1:23 pm
by MacdaOriri
How do I add command buttons to a dialog using LWUIT???