private void txtInvCheckinSearchInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
if(txtInvCheckinSearch.getText().length() <= 0){
btnInvCheckinOK.setEnabled(false);
}else{
btnInvCheckinOK.setEnabled(true);
}
}
Did I do this right? What I am aiming for here is for the jbutton to enable itself when the jtextbox is not empty. And if jtextbox is empty, the jbutton disables itself back. (i preset jbutton to .setEnabled(false); in the windowOpened event.