I was wondering how to open two frames using the same code, but work on the code independently. I am making a two players game and I do not want one player's frame to affect the others. I would however like one integer to be shared among them, if not complicated.
Just to make it easier, whenever you start a program twice on java, each window is separate from the other but still uses the same code. I basically want the same thing when I open the programe ONCE, so that they open side by side.