I was wondering how it would be possible to create my own listener for something, and to be able to use it just like any other listener, ex.
public interface Listener {
public void onListen(Event e);
}
And then this in my class
public class test implements Listener {
Object.add(new Listener() {
@Override
public void onListen(Event e) {
}
});
}
I guess what i'm really asking also is where do I define how to check if something happens pertaining to the listener that I create?
If any of this doesn't make sense, please tell me and I will clarify it.
If at best this makes no sense to you, i'll try this. How would I make a listener to check if the selected option in a combobox has changed to a different option. I don't actually need a combobox listener though, that was just an example.