Package java.awt.dnd

Examples of java.awt.dnd.DropTargetListener


    /* Register simulation menu actions */
    registerSimulationMenuAction(ResetViewportAction.class);
    registerSimulationMenuAction(ToggleDecorationsMenuAction.class);

    /* Drag and drop files to motes */
    DropTargetListener dTargetListener = new DropTargetListener() {
      @Override
      public void dragEnter(DropTargetDragEvent dtde) {
        if (acceptOrRejectDrag(dtde)) {
          dtde.acceptDrag(DnDConstants.ACTION_COPY_OR_MOVE);
        }
View Full Code Here


public class FileDropTarget extends DropTarget{
  Component source = null;
  public FileDropTarget(Component c) {
    super(c, null);
    source=c;
    DropTargetListener dropTargetListener = new DropTargetListener() {

    // Die Maus betritt die Komponente mit
    // einem Objekt
    public void dragEnter(DropTargetDragEvent e) {
      //evtl statuszeile text setzen
View Full Code Here

    /* Register simulation menu actions */
    registerSimulationMenuAction(ResetViewportAction.class);
    registerSimulationMenuAction(ToggleDecorationsMenuAction.class);

    /* Drag and drop files to motes */
    DropTargetListener dTargetListener = new DropTargetListener() {
      public void dragEnter(DropTargetDragEvent dtde) {
        if (acceptOrRejectDrag(dtde)) {
          dtde.acceptDrag(DnDConstants.ACTION_COPY_OR_MOVE);
        } else {
          dtde.rejectDrag();
View Full Code Here

TOP

Related Classes of java.awt.dnd.DropTargetListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.