applet - Java: How to activate a button only if a textfield has a specific value? -
i making applet in people have enter 4-number pincode can withdraw sum of money. however, withdraw button deactivated default, , activated when single code entered in pin textfield. best way this?
you need create listener , attach textfield. listener fire e time contents of textfield changes. have listener test contents of textfield, , if correct activate button.
documentation of textfield should give need know.
Comments
Post a Comment