Help: Phone dialing keypad


Help is available for each task, or you can go straight to the solution source code.

Task 1

Create a new applet called PhonePadTest.
No help for this section.

Task 2

In the Properties Editor, set the layout to be a 4 row by 3 column GridLayout. Then add twelve buttons to the container. Any previously added buttons will move and resize themselves to accomodate the new buttons.
Adding the buttons is accomplished most easily by selecting the Sticky check-box and selecting a button bean and simply clicking nine times in the applet pane.

Task 3

Change the labels on the buttons to match the standard phone keypad:
1  2  3
4  5  6
7  8  9
*  0  #

To change a label on a button, hold the Alt key and click on the button. You can then type the new name. End the change by pressing Enter or clicking the mouse outside the button.

Copyright © 1996-1997 MageLang Institute. All Rights Reserved.