Click here to Skip to main content
15,890,609 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have developed a software and it contains menu.
so i want to hide extra menus until user type user name and password correct?

so this is my code for hide menus.
but it won't hide

Java
public VisaInfo(){
visaMenu2.setVisible(false);
visaMenu3.setVisible(false);
initComponents();
}


can i hide menu at once or
do i need to hide menu items or what?

please let me know as soon as you can guys?
Posted
Updated 13-Dec-15 22:00pm
v2

1 solution

try calling
C#
initComponenets();
before the menu hiding code..

C#
public VisaInfo(){
initComponents();
visaMenu2.setVisible(false);
visaMenu3.setVisible(false);
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900