I have a program with several tabs, so I will test if the user is ADMIN, based on this I would like to hide / disable some tabs, I already tested these commands and they do not disable the window:
private void SetAbasVisiveis( Usuario usuario){
if(!usuario.getAdmin()){
this.pnlMedicamentos.setVisible(false);
this.pnlMedicamentos.setEnabled(false);
this.pnlMedicamentos.setFocusable(false)
}
}
Follow elements