//Tina Ostrander
//CSCI 143
//Object arrays


import java.awt.*;
import javax.swing.*;

public class ArrayObject extends JApplet
{
	String[] lbl = {"One", "Two", "Three", "Four", "Five"};
	JLabel[] jLbl = new JLabel[5];
	JTextField[] jTxt = new JTextField[5];
	Color[] clr = new Color[5];

	public void init()
	{

		Container con = getContentPane();
		con.setLayout (new FlowLayout(FlowLayout.LEFT));

		for (int i = 0; i < jLbl.length; i++)
		{
			jLbl[i] = new JLabel (lbl[i]);
			jTxt[i] = new JTextField (5);
			jTxt[i].setEditable (true);
			jTxt[i].setBackground (Color.yellow);

			con.add(jLbl[i]);
			con.add(jTxt[i]);
		}

	}
}





