Im doing a password control in Java to a site.
its an applet and when u press on the button Pass i want it to go to a certain address for example "/elyo.htm"
but i dont know what i should write after the if-thingy
now this is what ive come up with:
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Plain extends Applet implements ActionListener{
Button pass;
TextField password;
public void init () {
setSize(100,50);
setLayout(new GridLayout(2,1));
pass = new Button("Continue");
pass.addActionListener(this);
password = new TextField();
add(password);
add(pass);
}
public void actionPerformed(ActionEvent ev) {
if (password.getText().equals("elYo") || password.getText().equals("elyo")){
}
}
}
hope you understand me and can help me...
ty