Hi.... i have a question...?
i have a program... it's all about for browsing files and directory...
and my design i have 3 TextField 4 Buttons...
here the flow of my program:
when the 3 TextField have a complete value of specific path... the 1 button will be enabled... and i already done with that... my problem is when i delete the value or the path of one TextField the 1 button will be going to disabled...
what im going to do..?

this my codes for enabled button when the values are complete:

Java Code:
private boolean checkUserInput(){
        boolean returnValue = false;
        int counter = 0;
        
        if(!this.UserInputInfo.getEnfile().isEmpty()){
            counter++;
        }
        else if(this.UserInputInfo.getEnfile()==null){
            counter--;
        }

        if(!this.UserInputInfo.getLocalizedDirectory().isEmpty() ||
                !this.UserInputInfo.getLocalizedSingleFile().isEmpty()){
                counter++;
        }

        if(!this.UserInputInfo.getOutputDirectory().isEmpty()){
            counter++;
        }

        if(counter==3){
            returnValue = true;
        }
        return (returnValue);
    }
I need answer..

Thanks in advance...