Urgently need ahosang...

ahosang, since your applet was such a success here at our workplace, we wondered if you could adjust the same applet program to do a few new things.

The recent one had a new frame window which we still want. The first applet window should like a small form with two textfields, where the user enters their email address and password.

The email textfield should have 2 validation checks:
1)The first number should not be numeric.
2)It should check for the '@' at sign in the email address.

The password should be COMMUNITYSYS.

There are 2 buttons below - OK and CLEAR.
When the user clicks "OK" it should open a new frame window once the user enters a valid email and password (COMMUNITYSYS). If email and password are not valid than a new frame window should say that User has entered invalid email and password.

This new frame window should display a form:
Enter the name (textfield)
Enter the destination (choicelist)
Enter the city (choicelist)
Salary: 5000-9000 (radio button) 10000-15000 (radio button)
ID is: (textfield)

There are 2 buttons - OK and CLEAR.

Now what should happen, is that in the ID textfield, what should display is the first characters of the user's name, the destination, the city and the salary. So for example if I enter:

Susan
Faculty
Maryland
10000

The ID textfield should display: SFM10000

ahosang, if the ID textfield can display the first characters of the information in the textfield than it would be excellent but if you can think of a better way of how to do this than I would be very grateful. The main thing is to make sure that the first characters be displayed as the ID.

Actually could you tell me if you want any of the old stuff on the original applet. Tell me if I got it right:
You want just two textfields only: email and password, and if the validation is good then continue as stated above?

susan, sorry my personal and work time have been SO busy recently, I have not had a chance to implement this yet. Could you tell me when your deadline is. Also, please compile this and see if it is a starting point:
import java.awt.*;
import java.awt.event.*;
import java.applet.*;

Thank you so much for doing this program in between your busy schedule, I apologize for any inconvenience caused, it's only because your applets work so well! I did compile the program and it's working perectly.

ahosang, I have shown your program to my colleagues and they all say it's really good. I hope I do not pressure you when I say if it all possible can it be finished by this Monday (actually the staff wanted something for this Friday but I can understand about the ID problem). We don't mind if you need to create another window or button to extract the first characters for the ID. Actually we leave this up to your expert knowledge how best it would look.

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects.
Interface Comparable is used to allow objects of a cl…

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…

Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…