In this Magercise you will create a phone keypad full of buttons laid out with
GridLayout.
Magercise 2 Prerequisites
None.
Skeleton Code
PhonePadTest.java
Tasks:
Make a subclass of Panel called KeyPad. Define an
array
of strings containing the key labels on a phone keypad.
In the constructor, set the layout to be a 4 row by 3 column grid of buttons.
Create and add buttons to the container with a for loop.
Where help exists, the task numbers above are linked to the
step-by-step
help page.