This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Netbeans Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Netbeans Validation" Watch "Netbeans Validation" New topic

Netbeans Validation

Bartosz Emas

Joined: Dec 27, 2013
Posts: 4
Hello! I am creating a program in Netbeans which requires validation of email and password. What I mean is when jButton is clicked it will check if jTextField equals to another jTextField. For example the first one is ENTER PASSWORD and the second one RE-ENTER PASSWORD. If the re-entered password does not much I want to change to colour of text to red and display information "not valid", whereas if it matches, change text to green and display information "Email Valid". I am using GUI. Thank you for any suggestion.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10171

So what have you tried so far and where are you stuck?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
It is sorta covered in the JavaRanch Style Guide.
subject: Netbeans Validation
Similar Threads
i keep on seeing the console window and not the applet
how 2 do this code
Regarding JTextField
error in validation
not validating