Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Curve
My Carrier: Telcel
Accepted Solution

Problem with ListStyleButtonSet (I'm a noob)

Hi there guys, i'm a noob with this development (java+BB) and I'm using the Eclipse plugin.  I have this code for ListStyleButtonSet and it shows the next error:

 

"ListStyleButtonField cannot be resolved to a type"

 

I have all my imports and i don't know how can I use this UI...could you help me please?  Thanks in advance Smiley Happy

 

 

Ps.- here is the code i am using to create new ListStyleButtonSet:

 

 

ListStyleButtonSet buttonSet = new ListStyleButtonSet();

ListStyleButtonField aboutButton = new ListStyleButtonField( "About", buttonRight );
ListStyleButtonField ownerButton = new ListStyleButtonField( "Owner", buttonRight );
ListStyleButtonField statusButton = new ListStyleButtonField( "Status", buttonRight );

Developer
Posts: 133
Registered: ‎04-30-2010
My Device: Curve 8520
My Carrier: T-Mobile

Re: Problem with ListStyleButtonSet (I'm a noob)

ListStyleButtonField is not part of the BlackBerry java Api, but comes from their Advanced UI Sample Library, See here: http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-manage...

You will need to download this library and add it to your project
Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Curve
My Carrier: Telcel

Re: Problem with ListStyleButtonSet (I'm a noob)

Hey thanks a lot! could you help me please with it? I don't know exactly which of the files I have to add because mobile developmente is new for me
Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Curve
My Carrier: Telcel

Re: Problem with ListStyleButtonSet (I'm a noob)

Any help with it? Advanced GUI it's awesome but i don't know how can i use it Smiley Sad please help me

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem with ListStyleButtonSet (I'm a noob)

By far the easiest way to use this code is to downlaod the whooe set, and then copy the code into your application.  Change the package names used by the RIM supplied classes you want to use to match your applicatoin and add the source to your project. 

Contributor
Posts: 16
Registered: ‎02-03-2012
My Device: Curve
My Carrier: Telcel

Re: Problem with ListStyleButtonSet (I'm a noob)

Thanks a lot!

 

I did it but now i can't open my App.... it throws an error  "Class [...].ui.ScrollView not found " , even if i import it .

 

If I move the files out src folder, my app works..

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Problem with ListStyleButtonSet (I'm a noob)

From memory ScrolView is a class new in OS 6.0 and not used in OS 5.0.  What level are you using to compile and what level is th e Simulator you are using?