I was wondering what is the basic way to deal with menus in java? I have a bunch of different menus that should be opened when I click on a button. Right now I am using layers for each menu and I show and hide each of them. But this gets complicated with all the setVisibles(). Any other methods I can do?