All you need to do is copy the contents of Main.java into your projects Main.java file. Then create a new class called "GamePanel.java" and copy the contents of this GamePanel.java in there.
JFrame is class of swing package in java and swing package is a part of j2se to develop standalone application. Here below I am Creating a frame with single argument constructor of the JFrame where I ...
Create a Java class called Lab1Part1. Extend this class from the JFrame class (remember to import javax.swing). Make the frame 600 pixels wide and 300 pixels high ...