Accidentally I deleted java, so i had to re-download eclipse as well, so when i started it up I made a new Java project, package and class. But when I copied my Tic-Tac-Toe code into the class, it seemed to not recognize JFrame or JButton. I searched the internet trying to find away to fix it but I couldn't. I've tried everything and still JFrame and JButtons come up as errors, any advise will help, thanks.
I don't know if you need this but here's the code: