I made an improvement! Now after the winter breaks, i successfully made and ran a timer(disposed a JFrame). But, i have no idea how to stop the timer.
I don't know where to put the line " t.stop(); ".
The code is attached below.
When i run my application, it works perfectly till home.
Then, if i click any button on 'home'(open a new frame of the program), or the focus of home is lost by any means, home comes back into focus after 3.75 seconds virtually disabling the rest of the program or any other program.
justjoking is a button used to display the frame to be disposed.
intro is the frame to be disposed.
home is an another frame which shows up when intro is disposed.