Hi everyone,
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.