5 Replies Latest reply: Apr 11, 2007 3:05 PM by 807606 RSS

    cannot be referenced from a static context

    807606
      im trying to link my user interface to the Game class to jump,
      i get the error - non static method jump() cannot be referenced from a static context

      private void jButton1_actionPerformed(ActionEvent e)
           {
                System.out.println("\njButton1_actionPerformed(ActionEvent e) called.");
                // code
      Game.jump();
           }

      any ideas? thanks