Problem setVisible property of jlabel in java does not work

0

hello I have the following code which according to a hidden condition or I show the label at least I try. by default I leave the label hidden, it goes through the condition but it does not show the label I leave the code here below. thanks in advance.

private void txtrutFocusLost(java.awt.event.FocusEvent evt) {                                 


    try{
        System.out.println("el resultado es "+ existe(txtrut.getText()));
        if(existe(txtrut.getText())==1){
            msg_rut.setVisible(true);
            System.out.println("pase por el if");
        }
        else{ msg_rut.setVisible(false);}    
    }
    catch(Exception e){
        System.out.println("problema al validar el rut en bd"+ e.getMessage());
    }




}  
    
asked by jose miguel jara 28.01.2017 в 03:33
source

0 answers