I have developed my own class which consists of TextField and 2 DirectionButtons. This Class extends to a Panel and has all of the goodies that go along with that class except the following: I want to addMouseListener to my Object to handle mouseEntered and mouseExited events. As you'd expect, these events only get added to the Panel and not to the componenet residing on the panel. How do I encompass the other 3 componenets in this MouseListener? Keep in mind that I would like to keep the other componenets private.
The reason I want to do this is so that anyone who uses this Class will be able to just add listeners very easily like any other component without having to do anything special. Basically I have created my own componenet.
The reason I want to do this is so that anyone who uses this Class will be able to just add listeners very easily like any other component without having to do anything special. Basically I have created my own componenet.