Java Swing :Back Button from one form to another form
i have a form called loginform.java .when i login,the form gets logged in and it gets into the page MainForm(MainForm.java).
In Mainform if i click the Back button,loginform should have to open.(this has to be done in Swing( core java))
i created another instance in Mainform.java for loginform.java.
when i click the back button in Mainform.java ,another loginform gets opened.
So two loginform gets opened seperately.
So give some idea to code this issue.
Re: Java Swing :Back Button from one form to another form
Please try doing a search on the forums. I'm sure this has been answered before. :)