File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 10825

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!]
I agree. Here's the link:
subject: Netbeans Validation
It's not a secret anymore!