I want to create a listener that works like mouselistener, but it must be a component: F.e. i have two JComponents (One is a button, and second is MyComponent), and i want to do following:
button.addMyComponentListener(listener); And if MyComponent for example has moved above button, it must fires an event, or if MyComponent has change some propertyw when he is above button, it must be also an event.