简体   繁体   中英

How to drag and open file in editor?

I have a editor developed which opens the xml file and display it there (with the proper structure), for this I need to browse through all the times to select target file, in what way I can add dragging in file feature enable for this ?

The report editor is developed with Java SWT components.

I want to know the possible ways or API available for "dragging in" file ?

This link might help you.

DragSource class which provides the drag and drip API in SWT.

http://www.java2s.com/Tutorial/Java/0280__SWT/DraggingandDropping.htm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM