A good answer might be:
The | |
The |
import java.awt.*;
import java.awt.event.*;
public class TextEg2 extends Frame
{
_______ ______ = new _______( ________ )
TextField text = new TextField( 15 );
TextEg1() // constructor
{
setLayout( new FlowLayout() ); // choose the layout manager
add( _______ ) ;
add( _______ ) ;
}
public static void main ( String[] args )
{
. . . . .
}
. . . . .
}
|
Recall that with FlowLayout,
components are put into the frame in the order that they are added.
Fill in the blanks so that the label "Enter Your Name" is placed in front of the TextField.
Click Here after you have answered the question