I\'m changing \"views\" with cardLayout (this class has a JFrame variable). When a user clicks a new game button this happens:
JFrame
public class View
Move game.loop() method invocation to something like:
SwingUtilities.invokeLater(new Runnable() { @Override public void run() { game.loop() } });
Thanks.