Skip to main content

20081222 new drop problem

12 replies [Last post]
Anonymous

I've found the following problems when I migrate from the previous drop.

1)
Form.addComponent(BorderLayout.CENTER,component) will cause a runtime error,
the error message is

ALERT: java/lang/NoSuchMethodError: No such method
addComponent.(Ljava/lang/String;Lcom/sun/lwuit/Component;)V.
.
Change the line to Form.addComponent((Object) BorderLayout.CENTER,component)
will solve the problem.

2)
There is a new method called TextArea.setWidestChar(char) in javaDocs. But
compiler complains cannot find symbol,symbol : method setWidestChar(char)

I have a question, what is the different between LWUIT.jar &
LWUIT_stripped.jar?
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
abbasvlb
Offline
Joined: 2009-08-08

> Shai is right. After checking my build environment
> and remove the old
> redundant jar. Everything is ok now.
>
> On Thu, Jan 1, 2009 at 10:10 PM, Penyihir Kecil
>
wrote:
>
> > yup what the different ?????
> >
> > >>> I have a question, what is the different
> between LWUIT.jar &
> > LWUIT_stripped.jar?
> >
> > *Shai Almog * wrote:
> >
> > You are compiling against a different version of
> LWUIT than the one you are
> > running against. Check your build environment.
> >
> > I've found the following problems when I migrate
> from the previous drop.
> >
> > 1)
> > Form.addComponent(BorderLayout.CENTER,component)
> will cause a runtime
> > error, the error message is
> >
> > ALERT: java/lang/NoSuchMethodError: No such
> method
> >
> addComponent.(Ljava/lang/String;Lcom/sun/lwuit/Compone
> nt;)V.
> > .
> > Change the line to Form.addComponent((Object)
> > BorderLayout.CENTER,component) will solve the
> problem.
> >
> >
> > 2)
> > There is a new method called
> TextArea.setWidestChar(char) in javaDocs. But
> > compiler complains cannot find symbol,symbol :
> method setWidestChar(char)
> >
> >
> > I have a question, what is the different between
> LWUIT.jar &
> > LWUIT_stripped.jar?
> >
> >
> > Shai Almog
> > http://lwuit.blogspot.com/
> >
> >
> >
> >
> > dwi ardi irawan - 'penyihirkecil'
> > http://dwiardiirawan.blogspot.com
> >
> >
> [att1.html]

How to do this plz tell me...

Yesterday i downloaded new Lwuit.jar. I removed my old LWUIT library and create new library with new Lwuit.jar and added to my project.

If i built and run the application created using old jar mean my application is throwing

startApp threw an Exception
java.lang.NullPointerException
java.lang.NullPointerException
at com.sun.lwuit.Form.initFocused(Form.java:1078)
at com.sun.lwuit.Form.show(Form.java:1091)
at Main.MainMidlet.showMainForm(MainMidlet.java:270)
at Main.MainMidlet.startApp(MainMidlet.java:97)

these exception..

by my application is running well with the old library...

How to migrate to new properly.?

Please help me.

Shai Almog

As Chen mentioned, this is a race condition in your code from modifying
LWUIT components in a different thread.
>> Shai is right. After checking my build environment
>> and remove the old
>> redundant jar. Everything is ok now.
>>
>> On Thu, Jan 1, 2009 at 10:10 PM, Penyihir Kecil
>>
wrote:
>>
>>
>>> yup what the different ?????
>>>
>>>
>>>>>> I have a question, what is the different
>>>>>>
>> between LWUIT.jar &
>>
>>> LWUIT_stripped.jar?
>>>
>>> *Shai Almog * wrote:
>>>
>>> You are compiling against a different version of
>>>
>> LWUIT than the one you are
>>
>>> running against. Check your build environment.
>>>
>>> I've found the following problems when I migrate
>>>
>> from the previous drop.
>>
>>> 1)
>>> Form.addComponent(BorderLayout.CENTER,component)
>>>
>> will cause a runtime
>>
>>> error, the error message is
>>>
>>> ALERT: java/lang/NoSuchMethodError: No such
>>>
>> method
>>
>> addComponent.(Ljava/lang/String;Lcom/sun/lwuit/Compone
>> nt;)V.
>>
>>> .
>>> Change the line to Form.addComponent((Object)
>>> BorderLayout.CENTER,component) will solve the
>>>
>> problem.
>>
>>> 2)
>>> There is a new method called
>>>
>> TextArea.setWidestChar(char) in javaDocs. But
>>
>>> compiler complains cannot find symbol,symbol :
>>>
>> method setWidestChar(char)
>>
>>> I have a question, what is the different between
>>>
>> LWUIT.jar &
>>
>>> LWUIT_stripped.jar?
>>>
>>>
>>> Shai Almog
>>> http://lwuit.blogspot.com/
>>>
>>>
>>>
>>>
>>> dwi ardi irawan - 'penyihirkecil'
>>> http://dwiardiirawan.blogspot.com
>>>
>>>
>>>
>> [att1.html]
>>
>
> How to do this plz tell me...
>
> Yesterday i downloaded new Lwuit.jar. I removed my old LWUIT library and create new library with new Lwuit.jar and added to my project.
>
> If i built and run the application created using old jar mean my application is throwing
>
> startApp threw an Exception
> java.lang.NullPointerException
> java.lang.NullPointerException
> at com.sun.lwuit.Form.initFocused(Form.java:1078)
> at com.sun.lwuit.Form.show(Form.java:1091)
> at Main.MainMidlet.showMainForm(MainMidlet.java:270)
> at Main.MainMidlet.startApp(MainMidlet.java:97)
>
> these exception..
>
> by my application is running well with the old library...
>
> How to migrate to new properly.?
>
> Please help me.
> [Message sent by forum member 'abbasvlb' (abbasvlb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=359971
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

--
Shai Almog

LWUIT Blog http://lwuit.blogspot.com/
LWUIT FAQ https://lwuit.dev.java.net/faq.html
YouTube Channel http://www.youtube.com/user/vprise
Applications in LWUIT https://lwuit.dev.java.net/nonav/featuredapp.html

[att1.html]

abbasvlb
Offline
Joined: 2009-08-08

My Code is working now..

sir, the reason for migrating to new package is to use the setWidestChar method.

i am trying to display languages other than english in LWUIT. While displaying tamil(Indian language) the lower part of some letter is not displaying. i think the components like Label, button and Text Area is not allotting enough room to display big Tamil letters.

I tried setWidestChar method to increase the height of the letters sir, but still the lower part of some big letters is not displaying.

I given TextArea.setWidestChar('á'); because the character á display a biggest letter in Tamil. but still the problem exists.

i think the letter á is smaller than W , though the letter á display big letter in Tamil.

please help to find out what could be the problem and how to solve it.

Shai Almog

Are you using system or bitmap fonts?
On which device/simulator is this happening?
Can you provide a way to reproduce the issue.
> My Code is working now..
>
> sir, the reason for migrating to new package is to use the setWidestChar method.
>
> i am trying to display languages other than english in LWUIT. While displaying tamil(Indian language) the lower part of some letter is not displaying. i think the components like Label, button and Text Area is not allotting enough room to display big Tamil letters.
>
> I tried setWidestChar method to increase the height of the letters sir, but still the lower part of some big letters is not displaying.
>
> I given TextArea.setWidestChar('á'); because the character á display a biggest letter in Tamil. but still the problem exists.
>
> i think the letter á is smaller than W , though the letter á display big letter in Tamil.
>
> please help to find out what could be the problem and how to solve it.
> [Message sent by forum member 'abbasvlb' (abbasvlb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=360355
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>

--
Shai Almog

LWUIT Blog http://lwuit.blogspot.com/
LWUIT FAQ https://lwuit.dev.java.net/faq.html
YouTube Channel http://www.youtube.com/user/vprise
Applications in LWUIT https://lwuit.dev.java.net/nonav/featuredapp.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

abbasvlb
Offline
Joined: 2009-08-08

Hi sir...
Sorry for late reply..

I am using Bitmap font.
Problem occurring in both simulator and devices..

To reproduce the issue, plz download the res file from the following link.
http://demo.thinnai.info/abbas/tamil.res

Open the res file in resource editor, you can see that the lower part of some big letters is not displaying.

see this image sir -> http://demo.thinnai.info/abbas/problem.JPG

If you need more information mean tell me sir.. i ll send..

Thank you..

Chen Fishbein

Hi,
Can you please verify this on the latest version 1.2 and the new
Resource Editor.

Thanks,
Chen

lwuit-users@mobileandembedded.org wrote:
> Hi sir...
> Sorry for late reply..
>
> I am using Bitmap font.
> Problem occurring in both simulator and devices..
>
> To reproduce the issue, plz download the res file from the following link.
> http://demo.thinnai.info/abbas/tamil.res
>
> Open the res file in resource editor, you can see that the lower part of some big letters is not displaying.
>
> see this image sir -> http://demo.thinnai.info/abbas/problem.JPG
>
> If you need more information mean tell me sir.. i ll send..
>
> Thank you..
> [Message sent by forum member 'abbasvlb' (abbasvlb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=361306
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

abbasvlb
Offline
Joined: 2009-08-08

hi sir..

I am using old resource editor only..

Now I downloaded a latest version Resource Editor and checked, the problem i not occurring .. Thanks sir..

I didn't updated to new Resource Editor and also the Lwuit package.. its my mistake.. sorry..

Now i can be able to increase the height of the letter,but my application is looking different with new resource file, soon i ll adapt to new one..

sir please tell me, how to find out, what are the enhancements done in new version.?

thanks sir...thank u very much..

Message was edited by: abbasvlb

Shai Almog

The LWUIT_stripped.jar is a remnant of something we should have
removed. It won't be in the next drop.

> yup what the different ?????
>
> >>> I have a question, what is the different between LWUIT.jar &
> LWUIT_stripped.jar?
>
> Shai Almog wrote:
> You are compiling against a different version of LWUIT than the one
> you are running against. Check your build environment.
>
>> I've found the following problems when I migrate from the previous
>> drop.
>>
>>
>> 1)
>> Form.addComponent(BorderLayout.CENTER,component) will cause a
>> runtime error, the error message is
>>
>> ALERT: java/lang/NoSuchMethodError: No such method addComponent.
>> (Ljava/lang/String;Lcom/sun/lwuit/Component;)V.
>> .
>> Change the line to Form.addComponent((Object)
>> BorderLayout.CENTER,component) will solve the problem.
>>
>>
>> 2)
>> There is a new method called TextArea.setWidestChar(char) in
>> javaDocs. But compiler complains cannot find symbol,symbol :
>> method setWidestChar(char)
>>
>>
>> I have a question, what is the different between LWUIT.jar &
>> LWUIT_stripped.jar?
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>
>
>
> dwi ardi irawan - 'penyihirkecil'
> http://dwiardiirawan.blogspot.com
>

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Shai Almog

You are compiling against a different version of LWUIT than the one
you are running against. Check your build environment.

> I've found the following problems when I migrate from the previous
> drop.
>
>
> 1)
> Form.addComponent(BorderLayout.CENTER,component) will cause a
> runtime error, the error message is
>
> ALERT: java/lang/NoSuchMethodError: No such method addComponent.
> (Ljava/lang/String;Lcom/sun/lwuit/Component;)V.
> .
> Change the line to Form.addComponent((Object)
> BorderLayout.CENTER,component) will solve the problem.
>
>
> 2)
> There is a new method called TextArea.setWidestChar(char) in
> javaDocs. But compiler complains cannot find symbol,symbol :
> method setWidestChar(char)
>
>
> I have a question, what is the different between LWUIT.jar &
> LWUIT_stripped.jar?

Shai Almog
http://lwuit.blogspot.com/

[att1.html]

Penyihir Kecil

yup what the different ?????

>>> I have a question, what is the different between LWUIT.jar & LWUIT_stripped.jar?

Shai Almog wrote: You are compiling against a different version of LWUIT than the one you are running against. Check your build environment.

I've found the following problems when I migrate from the previous drop.

1)
Form.addComponent(BorderLayout.CENTER,component) will cause a runtime error, the error message is

ALERT: java/lang/NoSuchMethodError: No such method addComponent.(Ljava/lang/String;Lcom/sun/lwuit/Component;)V.
..
Change the line to Form.addComponent((Object) BorderLayout.CENTER,component) will solve the problem.

2)
There is a new method called TextArea.setWidestChar(char) in javaDocs. But compiler complains cannot find symbol,symbol : method setWidestChar(char)

I have a question, what is the different between LWUIT.jar & LWUIT_stripped.jar?

Shai Almog
http://lwuit.blogspot.com/

dwi ardi irawan - 'penyihirkecil'
http://dwiardiirawan.blogspot.com

[att1.html]

anson ho

Shai is right. After checking my build environment and remove the old
redundant jar. Everything is ok now.

On Thu, Jan 1, 2009 at 10:10 PM, Penyihir Kecil
wrote:

> yup what the different ?????
>
> >>> I have a question, what is the different between LWUIT.jar &
> LWUIT_stripped.jar?
>
> *Shai Almog * wrote:
>
> You are compiling against a different version of LWUIT than the one you are
> running against. Check your build environment.
>
> I've found the following problems when I migrate from the previous drop.
>
> 1)
> Form.addComponent(BorderLayout.CENTER,component) will cause a runtime
> error, the error message is
>
> ALERT: java/lang/NoSuchMethodError: No such method
> addComponent.(Ljava/lang/String;Lcom/sun/lwuit/Component;)V.
> .
> Change the line to Form.addComponent((Object)
> BorderLayout.CENTER,component) will solve the problem.
>
>
> 2)
> There is a new method called TextArea.setWidestChar(char) in javaDocs. But
> compiler complains cannot find symbol,symbol : method setWidestChar(char)
>
>
> I have a question, what is the different between LWUIT.jar &
> LWUIT_stripped.jar?
>
>
> Shai Almog
> http://lwuit.blogspot.com/
>
>
>
>
> dwi ardi irawan - 'penyihirkecil'
> http://dwiardiirawan.blogspot.com
>
>
[att1.html]

arunabraham
Offline
Joined: 2008-11-10

I found another problem. When I install the application in blackberry(8310) compiled with new drop, navigation from text field to text filed is not happening. In the old drop it was working but some unnecessary characters were getting printed.