How to create a menu dialog into a single window?
Good evenings :)
I couldnt find this answer no matter how much i searched in google in several combinations.
I want to create a window which contains a menu with the options found in an ATM machine.
Ok i put the awt buttons from swing but the action from each button has to erase the curent menu from the window and paint a new menu ( the next menu ) e.g you press "transaction" ie has to sent u to the menu with the available amounts to subtract from the account ( 20, 40 100 200.. )
how can i do this?
My friend managed to make it by opening a new window into the action with each press of button. But like this he had a new window each time for each sub-menu
A "wizard" function i found in a java book wasnt what i need it.
How can i make it in a single window?
Can someone tell me what i have to use ori even give a sample code of a window with 2 buttons where u press the 1st and shows u a new combination of awt elements [IN THE SAME WINDOW]
This simple is all i need :S i will understand then
( I tried to make it by calling a new window class in main after the 1st but here is not C++ ahaha XD )
THANK YOU FOR THE TIME! :D