Drag & Drop functionality for JAVA GUI components

버전 1.0.0.0 (4.63 KB) 작성자: Maarten van der Seijs
Class for Drag & Drop functionality
다운로드 수: 1.1K
업데이트 날짜: 2015/10/13

라이선스 보기

obj = dndcontrol(javaobj) creates a dndcontrol object for the specified Java object, such as 'javax.swing.JTextArea' or 'javax.swing.JList'. Two callback functions are available: obj.DropFileFcn and obj.DropStringFcn, that listen to drop actions of respectively system files or plain text.

The Drag & Drop control class relies on a Java class "MLDropTarget.class" that need to be visible on the Java classpath. To initialize, call the static method dndcontrol.initJava(). The Java class can be adjusted and recompiled if desired.
A demonstration is available from the static method dndcontrol.demo().

Example:
dndcontrol.initJava();
dndcontrol.demo();

Written by: Maarten van der Seijs, 2015.

인용 양식

Maarten van der Seijs (2026). Drag & Drop functionality for JAVA GUI components (https://kr.mathworks.com/matlabcentral/fileexchange/53511-drag-drop-functionality-for-java-gui-components), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2009b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
버전 게시됨 릴리스 정보
1.0.0.0