import java.applet.*;
import java.awt.*;
import java.awt.event.*;

public class Applet1 extends Applet implements ActionListener
{
	Label banner = new Label ("Enter your password:");
	TextField pw = new TextField(14);
	Label granted = new Label ("                                                                           ");

	public void init()
	{       
		add(banner);
		add(pw);
		add(granted);
		pw.addActionListener(this);
		pw.requestFocus();
		
	}
     
	public void actionPerformed(ActionEvent e)
	{
		Font bigFont = new Font("Times New Roman", Font.BOLD, 24);
		granted.setFont(bigFont);
		if  ((pw.getText().equals("password")))
			granted.setText("Access Granted");
		else
			granted.setText("Access Denied");	 		
	} 
}
