jdk/src/share/classes/sun/swing/JLightweightFrame.java
changeset 26342 3637212ae8f2
parent 25195 9de77f5b0df2
equal deleted inserted replaced
26341:dff08260db73 26342:3637212ae8f2
    35 import java.awt.Graphics2D;
    35 import java.awt.Graphics2D;
    36 import java.awt.MouseInfo;
    36 import java.awt.MouseInfo;
    37 import java.awt.Point;
    37 import java.awt.Point;
    38 import java.awt.Rectangle;
    38 import java.awt.Rectangle;
    39 import java.awt.Window;
    39 import java.awt.Window;
       
    40 import java.awt.dnd.DragGestureEvent;
       
    41 import java.awt.dnd.DragGestureListener;
       
    42 import java.awt.dnd.DragGestureRecognizer;
       
    43 import java.awt.dnd.DragSource;
       
    44 import java.awt.dnd.DropTarget;
       
    45 import java.awt.dnd.InvalidDnDOperationException;
       
    46 import java.awt.dnd.peer.DragSourceContextPeer;
    40 import java.awt.event.ContainerEvent;
    47 import java.awt.event.ContainerEvent;
    41 import java.awt.event.ContainerListener;
    48 import java.awt.event.ContainerListener;
    42 import java.awt.image.BufferedImage;
    49 import java.awt.image.BufferedImage;
    43 import java.awt.image.DataBufferInt;
    50 import java.awt.image.DataBufferInt;
    44 import java.beans.PropertyChangeEvent;
    51 import java.beans.PropertyChangeEvent;
   470         Component target = SwingUtilities.getDeepestComponentAt(this, p.x, p.y);
   477         Component target = SwingUtilities.getDeepestComponentAt(this, p.x, p.y);
   471         if (target != null) {
   478         if (target != null) {
   472             content.setCursor(target.getCursor());
   479             content.setCursor(target.getCursor());
   473         }
   480         }
   474     }
   481     }
       
   482 
       
   483     public <T extends DragGestureRecognizer> T createDragGestureRecognizer(
       
   484             Class<T> abstractRecognizerClass,
       
   485             DragSource ds, Component c, int srcActions,
       
   486             DragGestureListener dgl)
       
   487     {
       
   488         return content == null ? null : content.createDragGestureRecognizer(
       
   489                 abstractRecognizerClass, ds, c, srcActions, dgl);
       
   490     }
       
   491 
       
   492     public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent dge) throws InvalidDnDOperationException {
       
   493         return content == null ? null : content.createDragSourceContextPeer(dge);
       
   494     }
       
   495 
       
   496     public void addDropTarget(DropTarget dt) {
       
   497         if (content == null) return;
       
   498         content.addDropTarget(dt);
       
   499     }
       
   500 
       
   501     public void removeDropTarget(DropTarget dt) {
       
   502         if (content == null) return;
       
   503         content.removeDropTarget(dt);
       
   504     }
   475 }
   505 }