文件名称:JDRAGANDDROP
介绍说明--下载内容均来自于网络,请自行研究使用
Java鼠标拖放功能的实现源码,之前一个Java例子是使用系统剪贴板来交换程序间的数据,本例将利用鼠标的拖放来交换程序的数据,即所谓的鼠标拖放功能。Java 提供了java.awt.dnd 和java.awt.datatransfer 包来支持该功能。如效果截图所示。当在窗口上部的“Hello World1标签点下鼠标,并拖至窗口下部的文本框放开,则在文本框中将添加“Hello World 1文本;继续上述过程,将继续添加该文本。-Realization of Java source mouse drag and drop function, before a Java example is the use of the system clipboard to exchange program between the data, in this case will use the mouse to drag and drop to exchange program data, which is called the mouse drag and drop function. Java provides java.awt.dnd and java.awt.datatransfer package to support this function. If the result shown in the screenshot. When in the upper portion of the window "Hello World1 label point of the mouse, and the text is dragged to the window fr a me release, in the text box will add" Hello World 1 text continue the above process, will continue to add the text.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
(没有文件,原文件不完全或已损坏或有密码)