Ich hab den Quellcode hier finde aber das passwort nicht! könnt ih rmir da helfen?
import java.applet.Applet;
import java.applet.AppletContext;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.PrintStream;
import java.net.URL;
public class Pwd extends Applet
implements Runnable, ActionListener
{
public Pwd()
{
l = new Label("Passwort");
tf = new TextField();
li = new Button("Enter");
p = "event.Action";
}
public void actionPerformed(ActionEvent actionevent)
{
try
{
if(p.equals(tf.getText()))
getAppletContext().showDocument(new URL(getDocumentBase(), p + ".htm"), "_self");
else
getAppletContext().showDocument(new URL(getDocumentBase(), "button.htm"), "_self");
}
catch(Exception exception)
{
System.out.println(exception);
}
}
public void init()
{
Panel panel = new Panel();
setForeground(Color.black);
panel.setLayout(new BorderLayout(10, 10));
panel.setSize(200, 25);
panel.setLocation(0, 3);
panel.add(l, "West");
panel.add(tf, "Center");
setLayout(null);
add(panel);
li.setSize(100, 25);
li.setLocation(50, 70);
add(li);
li.addActionListener(this);
}
public void run()
{
}
public void start()
{
if(th == null)
{
th = new Thread(this);
th.start();
}
}
public void stop()
{
if(th != null)
{
th.interrupt();
th = null;
}
}
private Label l;
private TextField tf;
private Button li;
private Thread th;
private String p;
}