title: Java applet game does not work on Macs, even though it does work on PCs
body: <p>I made a game that is based in a jpanel.  When I add the jpanel to a jframe, it works fine on both pc's and macs.</p>
  
  <p>here is the class where I add the jpanel to the jframe:    </p>
  
  <pre><code>import javax.swing.JFrame;
  
  public class Start{
     public static void main(String[] args){
  
        JFrame f = new JFrame("Rocks");
        f.setSize(600,500);
        f.setResizable(false);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        Board b = new Board();
        f.add(b);
        f.setVisible(true);
     }
  }
  </code></pre>
  
  <p>However, when I add this jpanel to a japplet, it still works perfectly on pc's, but not on macs.  In the eclipse applet tester, the first screen paints, but it doesn't accept keyboard input to start the game.  In any browser/html page though, the game doesn't seem to load at all, and when I open the java console of chrome I see no errors.</p>
  
  <p>here is the class where I add the jpanel to the japplet</p>
  
  <pre><code>import javax.swing.JApplet;
  
  public class rockAppletStart extends JApplet{
  
     public void init(){
        Board b;
        b = new Board();
        add(b);
        b.focus();
     }
     public void start(){}
     public void stop(){}
     public void destroy(){}
  }
  </code></pre>
  
  <p>I would appreciate any help that could be offered, and I'm willing to provide more information if necessary.  I could even provide the other classes of the game, but there very long and messy, and I'd rather not unless necessary.</p>
  
  <p>The applet version of the game can be found <a href="http://gamejolt.com/online/games/arcade/rocks/4081/" rel="nofollow">here at gamejolt.com</a>, if you feel like testing it out.  If you have a pc, it should work fine, but with a mac it won't.</p>
  
  <p>** <strong>edit</strong> **
  here you can download the .jar file of all the classes and resources.  Feel free to use the files to test out your solution yourself if you want...  Otherwise, Ill have access to a mac on Tuesday and I will test all solutions then.</p>
  
  <p><a href="http://dl.dropbox.com/u/18832480/Rocks_Source_file.jar" rel="nofollow">http://dl.dropbox.com/u/18832480/Rocks_Source_file.jar</a></p>