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

Posts: 68
Registered: ‎07-21-2008
My Device: Not Specified
Accepted Solution

How to handle the click event of ButtonField?

I have added six buttons in my application. I want to perform different actions depend upon which button is pressed.

How could I do that? Can anyone please explain me with code?

Thanks in advance.

Posts: 205
Registered: ‎07-14-2008
My Device: 7230, 8700, 8820, 9000

Re: How to handle the click event of ButtonField?

You can use a FieldChangedListener.  When you press the button, it calls the fieldChanged(...) function.  The first parameter is the field that changed (i.e. the button).



Earl Oliver