} public void paint(Graphics g){ if (badPass) { g.setColor(Color.red); g.setFont(e); g.drawString("Incorrect Login ID or Password",100,170); loginField.setText("this id "); passwordField.setText(""); badPass= false;
} }
class SubmitButtonListener implements ActionListener { private exelForm applet;
public SubmitButtonListener(exelForm listening_applet) { applet=listening_applet; } public void actionPerformed (ActionEvent event) { applet.Submit(); } }