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());
}
}