⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e641. making a component a drop target.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
public class DropTargetComponent extends JComponent implements DropTargetListener {
        public DropTargetComponent() {
            new DropTarget(this, this);
        }
        public void dragEnter(DropTargetDragEvent evt) {
            // Called when the user is dragging and enters this drop target.
        }
        public void dragOver(DropTargetDragEvent evt) {
            // Called when the user is dragging and moves over this drop target.
        }
        public void dragExit(DropTargetEvent evt) {
            // Called when the user is dragging and leaves this drop target.
        }
        public void dropActionChanged(DropTargetDragEvent evt) {
            // Called when the user changes the drag action between copy or move.
        }
        public void drop(DropTargetDropEvent evt) {
            // Called when the user finishes or cancels the drag operation.
        }
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -