By adding the implements clause onto the class definition for Okno1, you are
telling the compiler that the class implements the specified interfaces. In
order for the class to actually meet this obligation, you have to code up
implementations of the methods in class Okno1. Based on your explaination
of what you are trying to accomplish, I'm guessing that you don't need the
class Okno1 to implement the interfaces. Remove the implents ... clause
from the class definition. The MouseMonitor class is the actual class that
is implementing the MouseListener interface.