Hey!
I have some trouble getting to the event listeners in my little game, this is because of a refactoring renovation, i have managed to get the graphics part working and all, but the event listeners just dont want to talk to me.
So this is the case. I have made a main class for creating the window component, all the rendereing context and stuff is started here and everything is renderd on a Frame component.
The thing i have done is that i created a class for the editor, to this i send the Frame, Graphics2D and BufferStrategy that i have already made in the main class so that all can work as it should in the editor class.
In the Editor class i have a render class and event listeners (MouseListener and MouseMotionListener).
The things that works nice is the Graphics, all stuff renders as it should, but i just cant get them listeners to work, i have specified them as follows:
editFrame.addMouseMotionListener(this);
editFrame.addMouseListener(this);
Where editFrame is the Frame component that i’ve sent from the main class.
So the big Q is: How do i make my listeners work in the editor class, or can they work at all? or do i have to make a whole new Frame object and a separate Window component to make it all work?

