Exercises Lab01Random
1) What three steps are needed to create buttons?
2) add(label) adds a label to the _______________.
3) There are at least four GUI components showing below. Label them all.
4) A fifth GUI component is hidden, but you know it is there. What is it?
- What do you have to do to program the action of a button?
6) What interface does every button's listener implement? ____________________________
7) What method is in the button listener interface? _________________________________
- "To implement an interface" means to write concrete methods for all the ___________________ methods in the interface.
- Give the range of values that the following will generate:
- Math.random();____________________
- Math.random() * 10;_____________________
- Math.random()* 100; _______________________
- Math.random() * 6;______________________