/[classpath]/classpath/java/awt/dnd/DropTarget.java
ViewVC logotype

Diff of /classpath/java/awt/dnd/DropTarget.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7.2.1 by gnu_andrew, Fri Jan 14 10:24:15 2005 UTC revision 1.7.2.2 by gnu_andrew, Fri Jan 28 10:43:56 2005 UTC
# Line 205  public class DropTarget Line 205  public class DropTarget
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    

Legend:
Removed from v.1.7.2.1  
changed lines
  Added in v.1.7.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26