public void addMouseListener(MouseListener listener) {
if (listener == null) {
throw new IllegalArgumentException();
}
if (mouseListeners == null) {
mouseListeners = new MouseListenerCollection();
sinkEvents(Event.MOUSEEVENTS);
}
mouseListeners.add(listener);
}