JXinput, how to add ButtonListener?

How do i add buttonlistener to my program?http://www.hardcode.de/jxinput/api/de/hardcode/jxinput/test/ButtonListener.htmlI've tried some different stuff, but i don't get it to work. Any ideas? Greetings Hannes
[246 byte] By [hannesruns@hotmail.coma] at [2007-11-27 2:44:51]
# 1
Button b=new Button("button1");b.addButtonListener(this);
lkofmana at 2007-7-12 3:11:52 > top of Java-index,Java Essentials,Java Programming...
# 2
In the future, Swing related questions should be posted in the Swing forum.[url http://java.sun.com/docs/books/tutorial/uiswing/events/handling.html]How to Write an Action Listener[/url].
camickra at 2007-7-12 3:11:52 > top of Java-index,Java Essentials,Java Programming...