| LabelSelectorPanel.java |
package addBk.address;
import java.awt.*;
public class LabelSelectorPanel
extends Panel {
String labelNames [] = {
"A", "B", "C", "D", "E",
"F", "G", "H", "I", "J",
"K", "L", "M", "N", "O",
"P", "Q", "R", "S", "T",
"U", "V", "W", "X", "Y", "Z"
};
Label labelArray[] = new Label[labelNames.length];
LabelSelectorPanel() {
setLayout(new GridLayout(0, 1));
for (int i = 0; i < labelNames.length; i++) {
labelArray[i] = new Label(labelNames[i]);
add(labelArray[i]);
}
}
}