Responding to a Click

 

5 points

 

Introduction

This app includes 2 images of items that are for sale, and each image has a button next to it. When the user clicks the button, the item's price is displayed below the item's image. You can use a Label to display the item's price. You can use an onEvent() to enable each button to display the price. And the setText() method to get the text to display in the Label.

Feel free to use 2 images that you find. If you'd like to use the images that I used in my version of the app, here they are:

 

Video

The video shows what a completed app should do.