205 |
/** |
/** |
206 |
* Adds a new <code>DropTargetListener</code>. |
* Adds a new <code>DropTargetListener</code>. |
207 |
* |
* |
208 |
* @exception TooManyListenersException If there is already a |
* @exception TooManyListenersException Sun's JDK does not, despite |
209 |
* <code>DropTargetListener</code>. |
* documentation, throw this exception here when you install an additional |
210 |
|
* <code>DropTargetListener</code>. So to be compatible, we do the same |
211 |
|
* thing. |
212 |
*/ |
*/ |
213 |
public void addDropTargetListener (DropTargetListener dtl) |
public void addDropTargetListener (DropTargetListener dtl) |
214 |
throws TooManyListenersException |
throws TooManyListenersException |
215 |
{ |
{ |
|
if (dtl != null) |
|
|
throw new TooManyListenersException (); |
|
|
|
|
216 |
dropTargetListener = dtl; |
dropTargetListener = dtl; |
217 |
} |
} |
218 |
|
|