I'm attempting to create a web page that takes user inputs from form fields and outputs various calculations as values displayed on the same web page. In addition to this, the user inputs create a "Gun" class instance and set its fields. Another class's method within the project generates random x and y coordinates based specific fields from the Gun instance. These coordinates are meant to be used in a Swing class, perhaps fillOval, to draw circles (which represent bullets) over an image embedded in the page. This is essentially a shot simulator.

Can this be done? Can a JFrame be embeded in a web page? Or am I wasting my time? Is there a more efficient language for this than Java?