[BUI]How to use BUI's MouseListener interface

im not using the InputHandler class from jme. so i created my own mouseListener class which implements both MouseListener and ComponentListener.

the i created a BButton and add the listener to it.

the problem is my mouse listener never gets invoked. whats the problem.

heres the button code.

      BButton button = new BButton("button");
      button.setSize(window.getWidth()/4, window.getHeight()/6);

Edit: i solved the problem by using ActionListener instead of mouselistener.  :D

but i still wanna know the answer :P

the response would probably be that the button generates action events and not mouse events :slight_smile: