Java 2D game does not work from menu ?
<p>Well i've been developing a 2D java game for a while but i face with a strange problem and i'm stucked :/. So that i'm uploading my source code here.</p>

<p>It is an eclipse project, in this project i have included 2 main methods to clearly state the problem i have experienced:</p>

<ol>
<li><p>in Menu class, starts the system from the menu and menu passes the frame to the game manager after pressing play game button</p></li>
<li><p>in GameManager class, starts the system by passing a frame to game manager directly.</p></li>
</ol>

<p>My problem is that: when i start the system from Menu class and press play game button, rendering continues but system does not respond to any actions even if i had added listeners to canvas, but it works when i start the system from the main method which belongs to GameManager class. :/ </p>

<p>here is my source code: <a href="http://www.mediafire.com/?4d2v1jfizrgpaqp" rel="nofollow">http://www.mediafire.com/?4d2v1jfizrgpaqp</a></p>

<p>Thanks</p>
