no edit summary
== Read Code from the BlackBerry Samples ==
[http://docs.blackberry.com/en/developers/subcategories/?userType=21&category=Sample+Applications Here are some of the most important BlackBerry Samples]
The custom buttons sample application demonstrates how to extend the Field class to create a variety of different button UI components.
The sample application demonstrates how to create the following types of buttons:
In addition to creating and displaying these custom buttons, the sample application also demonstrates how to attach listeners to these custom buttons. Listeners are components that execute code when an event occurs. In the sample application, when you click one of these buttons, a dialog box appears with text specifying which of the buttons you clicked.