title: Using a int value, which is in another class file?
body: <p>I want to use a int value, that is in Gui.class, in DrawPanel1.class, how can I pass over the int value easily from Class to Class file?
  My int value: </p>
  
  <p><code>
  /* Gui.java */
  static int gamestate = 1;</code></p>
  
  <p>I want to decrease gamestate by 1, in the DrawPanel.java, in a buttonHandler, like so:</p>
  
  <pre><code>/*DrawPanel.java */ 
      class StartNewGameHandler implements ActionListener{
       public void actionPerformed( ActionEvent e ){
                      gamestate--;
       }
  }
  </code></pre>