1/**
2 * Copyright(C) 1998
3 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for EDUCATIONAL purposes
7 * and without fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : January 1, 1998.
11 * @authorĀ : Salih Yurttas.
12 */
13
14import java.awt.*;
15
16public class TextFields00 extends Frame {
17
18 public static void main(String[] args) {
19 Frame f = new TextFields00();
20
21 f.setSize(400,320);
22 f.show();
23 }
24
25 private static String[] tLabels = {"One",
26 "Two",
27 "Three"};
28 private static final int N = tLabels.length;
29
30 private TextField[] tF;
31
32 public TextFields00() {
33 setTitle("TextFields00");
34
35 FlowLayout fL = new FlowLayout();
36 setLayout(fL);
37
38 tF = new TextField[N];
39
40 for(int i=0; i<N; i++) {
41 tF[i] = new TextField(tLabels[i]);
42 add(tF[i]);
43 }
44 }
45
46}