So I have a class that extends JFrame and implements a mouselistener that looks something like this :
public class CollageGallery extends JFrame implements MouseListener{
:
: //stuff
CollageGallery(){
:
:
addMouseListener(this)
}
}
I need the mouse listener to go back to focus onto the previously created JFrame and not this one.
How can I achieve this?