Skip to main content

LWUIT PeerComponent problem in Blackberry

3 replies [Last post]
bahik.jagan
Offline
Joined: 2011-09-30
Points: 0

Hi,

I would like to add Blackberry Fields to LWUIT Form

I tried to run this in blackberry

ButtonField nativeRIMButton = new ButtonField("Hello");
PeerComponent peer = PeerComponent.create(nativeRIMButton);
myForm.addComponent(peer);

I am getting IllegalArgumentException:UiEngine accessed without holding the event lock

Not only for this.I am getting same exception whenever I try to use peercomponent to integrate Blackberry Native components.

Please help me on this.

Thanks in adavance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07
Points: 0

Can you please provide a stack trace for that?

Also please verify that you are using the latest SVN version, we made some changes to this code.

Thanks.

bahik.jagan
Offline
Joined: 2011-09-30
Points: 0

i am getting errot

An internal application error occured:

java.lang.IILegalStateException:UI engine accessed without holding the event lock

Thanks

vprise
Offline
Joined: 2003-11-07
Points: 0

You can extract a stack trace by using alt-lglg make sure you have the latest version from SVN.