I m working with small java application called personal expenses database.
in my application i have a one jframe and two panels called login_panel and reg_panel.
login_panel is in inside the jframe.
reg_panel is a separate class that extends jpanel.
if click a create new account button,login_panel will be removed and reg_panel will be added.
what my question is, how can i get back to the original jframe after click the back button on reg_panel.
i have tried lot of things (ie. sending the contentpane reference to reg_panel object)
but i seem not working.
anyone pls help me.thanks in advance.