Robert Leon

Greenhorn
+ Follow
since Sep 26, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert Leon

Winston Gutkowski wrote:

Robert Leon wrote:i
Can you help me please

11 years ago
To Cambell: I am using a text Area where I can see the error message because if i use a message box it will pop up everytime i release the button thats why i dont use a message box
11 years ago
Sorry guys if I was not clear as I am a new user
my problem is not a design error I hope this time I can be more clear
1. all this 3 form are tables in my database and i have to store each field to their tables which are customers, booking and taxreturns
2. my customer form is the one for starting the program where I enter the customer details.
3. I can insert update delete and search for a customer
4. The second form is for making a booking to do the tax return and the third form if for making the calculation or the tax return

I have no problem so far working with the data base all is good
what i need is:
from the Customer Form I want CustomerTFN and Surname to be display in the other forms. for example if you can see my screen shots. I have the same CustomerTFN and Surname in my Booking Form how can I display them from the Customer Form. If i would do this program in Visual Basic I can make a module or global declaration and end of problem but in Java I dont know how to do it.
i will show a bit of my code if help:
1.-From customer class

2.-from CustomerForm(Design)


3.- what i need to do is this in the third form which is Booking Form



this bit is from the booking form i need to display the customerTFN from the CustomerCLass as i got the set and get method but if i can have a global declaration i can call this methods from any class inside the project


11 years ago
please can anyone see my screen shots attached here and in the customer form i have text fields for CustomerTFN and Surname and what i want is to show them in the second form which is the booking form I think a Module declaration for those field would be the solution but i dont know how to do that I will appreciate any help thank you


11 years ago

Dennis Deems wrote:Quiet down, no need to shout.

Here is a great site that lets you test a regular expression; I use it whenever I have a problem like this. However: you need to find a way to articulate the rules for your text validation -- completely, precisely, and unambiguously. Otherwise you will just be guessing.



thank you it works now
11 years ago
HI I AM DEVELOPING A TAX RETURN PROGRAM AND I GOT STUCK IN THE VALIDATION OF ONE FIELD WHICH IS FOR THE SURNAME I FIND IT HARD TO GET THE CORRECT SYNTAX I TRIED THIS

tfFullName.addKeyListener(new KeyAdapter()
{
public void keyReleased(KeyEvent evt)
{
String text= tfFullName.getText();

Pattern pattern = Pattern.compile("['a-zA-Z][a-zA-Z ']*");

Matcher matcher = pattern.matcher(text);

THIS CODE INSIDE THE PARENTHESIS IS VALID BUT GIVE ME AN UNLIMITED NUMBER OF STRING AND I ONLY NEED FOR ONE OR TWO FOR EXAMPLE I WISH TO VALIDATE
FERGUSON FOR ONE SURNAME AND
VAN VOWEL OR GARCIA MARQUEZ FOR TWO SURNAMES
IT WOULD BE EVEN BETTER IN SOME ONE CAN HELP ME TO GET SPECIAL SURNAMES LIKE
O'Connor
MacDonald
Smith-Henderson
ANYONE WHO SEE THIS MESSAGE THANKS FOR THE TIME AND I WILL APPRECIATED YOUR HELP
11 years ago
what i tried to do is this





but this validate a number and show me an error when is string please help
12 years ago
thank you rob i already create the keyEvent i just need the method or a keyword for the exception i know how throw an exception when i input an string in a textfield i only need the other way around
throwing an exception if i input a number thank you
12 years ago
sorry that did not help me.
what i need is throwing an exception if i input an numeric value or an especial character in a text field
which is only validated if i input an string only
12 years ago
thank you guys for your time.
What i am doing is a simple tax calculator which have inputs textfield.
my first text field is to input a full Name and i need to validate it throwing an error message if I press from the keyboard a number or any especial character
12 years ago
hi if someone can help me in creating an exception in an text field which only is valid when i press an strings from the keyboard as this is for a fullname textfield and show me error message if i press a number or especial character from the keyboard i will appreciate your help
12 years ago