// To run this applet, click on ioapplet.html.
public class ioapplet extends Applet
{
TextArea screen = new TextArea (2, 10);
Label screenLabel = new Label ("Screen");
TextField keyboard = new TextField (4);
Label keyboardLabel = new Label ("Keyboard");
Button enterKey = new Button ("Enter");
public void init ()
{
Color beige
= new Color (244, 224, 172);
setBackground
(beige);
setLayout
(null);
screenLabel.setBounds
(20, 10, 50, 10);
screen.setBounds
(10, 25, 150, 80);
keyboardLabel.setBounds
(20, 110, 70, 20);
keyboard.setBounds
(10, 140, 70, 30);
enterKey.setBounds
(90, 140, 70, 30);
add (screenLabel);
add (screen);
add (keyboardLabel);
add (keyboard);
add (enterKey);
}
} // public class ioapplet extends Applet