I have 3 swing text fields and a swing button. What i want to do is to change button.setEnabled() from false to true when there is none of those 3 fields blank. I suppose it’s not really difficult, but i just can’t find a way to do it.
It’s easy to have button.setEnabled(true) on keytyped action of one text field, but how do i check all of them?
Thanks for your replies.
I have 3 swing text fields and a swing button. What i want to
Share
One simple way: wherever you would put
button.setEnabled(true)put something like