Thank you for taking your time to help me. I was hoping to use itch.io so that people who don't have Java can play my game very easily. I don't want to ask them to download Java so they can run .jar files. I also tried making it an .exe file but I kept getting messages saying that "this program may have a virus" and I do not want anyone to experience that just for trying to play my game. That is why I think that a Java applet is the best thing for me.
So do you know how to take a regular Java program using graphics, and turn that into a Java applet so that it can be uploaded to itch.io? I understand that applets are deprecated because most browsers don't support them anymore, but is there still a way to make them from a Java IDE such as Eclipse?