Example usage for java.awt AWTEventMulticaster add

List of usage examples for java.awt AWTEventMulticaster add

Introduction

In this page you can find the example usage for java.awt AWTEventMulticaster add.

Prototype

@SuppressWarnings("overloads")
public static MouseWheelListener add(MouseWheelListener a, MouseWheelListener b) 

Source Link

Document

Adds mouse-wheel-listener-a with mouse-wheel-listener-b and returns the resulting multicast listener.

Usage

From source file:ItemEventComponent.java

public void addItemListener(ItemListener l) {
    itemListener = AWTEventMulticaster.add(itemListener, l);
}

From source file:Main.java

public void addActionListener(ActionListener actionListener) {
    actionListenerList = AWTEventMulticaster.add(actionListenerList, actionListener);
}