swing applet help
trying to create a swing applet that will display a form for creating an email directory, dont know if the code was writting correctly
import java.awt.*:
public class JEmailForm extends java.applet.Applet
{
Label firstnameLabel= new Label ("First Name:");
TextFied textfield = new TextField (25);
Label lastnameLable = new Lable("Last Name:");
TextField lastname = new TextField (25);
Label emailLabel = new Lable("Email:");
TextField email = new TextField (25);
Jbutton entVal = new Jbutton ("submit");
public void init() {
add (firstnameLabel);
add (firstname);
add (lastnameLabel);
add (lastname);
add (emailLabel);
email.setEchoCharacter ('*');
add (email);
add (jbutton);
}
}
JeevesBond posted this at 21:25 — 14th July 2006.
He has: 3,956 posts
Joined: Jun 2002
So what happens when you try using it then? Have to admit I know nothing about Java, but will take a stab at anything.
Don't know if I can help though!
a Padded Cell our articles site!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.