2
I have a program with several tabs, so I will be if the user is ADMIN, based on this I would like to hide/disable some tabs, I have already tested these commands and 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)
}
}
Follows elements
I didn’t quite understand your question. According to the user profile do you want to enable or not the tab? And as far as I can tell, this has nothing to do with Netbeans itself (at its core).
– Cold
Why they gave -1?
– LucasMotta
I don’t understand why Netbeans in the title
– Lucas
If Net Beans is a problem, just suggest editing, do not downvote
– LucasMotta
For the record, I didn’t downvote
– Lucas
Yes, I know, I put in Netbeans because I thought it would help answer why I’m using this environment, but many don’t, I’ve edited. Thanks
– LucasMotta