I'm very new at coding, and I want a swing button in the netbeans GUI to stay disabled until the correct password is entered to a password field. I have already created the password field, and given it a correct password.
If you can keep it simple it would be appreciated, as I'm very new to programming in general.
Best Solution
You can make use of
setEnabled
property,you can set it to
false
initially , upon validating make ittrue
.As
#setEnabled(boolean)
,