 <p>Your code creates the <code>Breakout</code> object and sets its visibility: </p> <pre><code>Breakout bo = new Breakout(); bo.setVisible(true); </code></pre> <p>However, you never invoke any other methods. For example you may want to invoke a <code>run</code> method or a <code>main</code> method. You have to call those methods somehow in order to execute the code.</p> <p>Another option would be to add a listener to the <code>Breakout</code> class so that it executes your code when the window opens, something like this: </p> <pre><code>addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { //call a method that runs the program here! } }); </code></pre>