Created a class to create the JFrame and render the objects