So I created a window in java, but I need to assign a different event to it depending on the time it is called. And the problem is, I can not do that. Is there a way to do it?
Window: