I have a Java project with 2 JFrames. On one frame is a bunch of stuff drawn using the AWT Graphics library. The other frame is a settings panel using javax.swing.JPanel. The settings correctly modify the contents on the first JFrame, however when it does the modified object on the settings panel draws itself on the main JFrame (for example, if I check a checkbox in the settings, a checkbox shows on the top-left of the other JFrame). Nowhere in my code do I add the contents of the settings panel to the first JFrame. Why might this be happening?
The code is a bit long and stored into 3 different files, so I uploaded it to GitHub. You can view the full project (for Eclipse) here, or view the source files directly here. The first JFrame is in main.java and the settings JFrame is in menuObj.java.