So I created a handling class that implements the MouseListener (this one works). As the program runs some resources are being loaded and it creates the panel to be used for the MouseListener etc... Then when everything is done it's suppose to enter() the panel and add the MouseListener. enter() below:
@Override
public void enter() {
gh = new Game_handler(gr); //gh works fine and implements mouselistener
this.addMouseListener(gh); //gr is nothing but a chunk of data
this.requestFocus();
}
Now for some reason the MouseListener doesn't listen! I 've done some system prints and I know the panel is created then the MouseListener class and then it's added to the panel. But for some reason it just wont do anything!