I am an amateur Java programmer, and I have just started learning how Java applets work. However, I wanted to make an applet for my Chrome browser, but it no longer works because Chrome doesn't support NPAPI plugins (like Java and Unity 3D). I want to make a standalone Java executable similar to Minecraft. The idea is that once I double-click on the `.jar` file, it opens the application and runs the program.

The program displays text and images based on input from a text box.

How do I make the `.jar` automatically open on a double click?