Moving through frames via buttons in the style of a menu
Hi all, I'm having a bit of trouble and I'm hoping someone can help. I'm trying to develop a simple point of sale system that would work within frames. What I'm really trying to do is open a main frame that will exist throughout the program, and then "move" through menus by closing and opening new frames within this permanent frame. I have very little experience with GUIs so I'm having a hard time thinking this through. When I click on a button such as Employee Menu, I'd just like to close the previous menu and open the Employee frame to work within. Is this a smart way to go about it? Any advice or suggestions would be greatly appreciated.
Re: Moving through frames via buttons in the style of a menu
Take a look at the CardLayout class.