[solved] Hello Input Tutorial and Action Listener problem

Hi. I have a little problem with Input Tutorial. It’s about Action Listener. I thought that ActionListener object must have override ActionPerformed(ActionEvent) method. In this example we only have onAction(String name, boolean keyPressed, float tpf) method. So, Eclipse told me that I have to implement ActionPerformed method. When I do this and leave this (ActionPerformed) function empty, and beside this I create this onAction method it doesn’t work. I have highlighted onAction method because it’s not in use. Anybody know how to solve this problem?

There are two different ActionListener interfaces. One in JME and one in standard Java. You must have imported the wrong one.


Thanks! That was so easy :slight_smile: