I have a Jframe and i need to link it to another Jframe if button is clicked it goes to another Jframe screen on click and closes old screen. accully i want if user click login register then it goes to login screen for getting login i am newbie and a bigginner kindly help me P.S its my first Qestion at Stack so ignore mistakes.