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
14
15import java.awt.*;
16
17public class EWindow extends Window {
18
19 private static String[] cStrings = {"One",
20 "Two",
21 "Three"};
22 private static final int N = cStrings.length;
23
24 private int x=10,
25 y=20;
26
27 public EWindow(Frame f) {
28 super(f);
29 }
30
31 public void paint(Graphics g) {
32 for(int i=0; i<N; i++) {
33 g.drawString(cStrings[i],x,y);
34 y += 20;
35 }
36 }
37
38}