[Java] How-to display text with in a Frame?

Ok, here is a simple Frame that I have created in Java. Now I know when I create an applet I have to create a Label to display text, and the invoke it from the init() or other method. But, I don’t want to put this Frame inside an Applet… can it be done?

// Programmer: Paul Belanger
// Written: Dec. 22 / 02
// Rhyme.java

import java.awt.*;

public class Rhyme
{
	public static void main(String[] args)
	{
  Frame aFrame = new Frame("The cat and the fiddle");
  aFrame.setSize(400, 100);
  aFrame.setVisible(true);
	}
}

How do I display the text? My text book does not explain it well.


import java.awt.*;

public class Rhyme
{
	public static void main(String[] args)
	{
           Frame aFrame = new Frame("The cat and the fiddle");
           aFrame.add(new TextField("Text To Display"));
           aFrame.setSize(400, 100);
           aFrame.setVisible(true);
	}
}