I am working on a little project, which in this example is made of 2 classes (and windows). Basically, when I click on a button placed on the JFrame 1, it open a JDialog, and th