开发者

java/swing: drag and drop with a list of strings

开发者 https://www.devze.com 2022-12-19 19:24 出处:网络
What 开发者_JAVA百科data flavor should I use to transfer a list of strings? I guess I can serialize the list of strings in JSON format, but was hoping I could just transfer a List directly.From Java T

What 开发者_JAVA百科data flavor should I use to transfer a list of strings? I guess I can serialize the list of strings in JSON format, but was hoping I could just transfer a List directly.


From Java Tutorial

For example, to create a data flavor for the java.util.ArrayList class:

   new DataFlavor(ArrayList.class, "ArrayList");

Transferring Data across the JVM boundary

0

精彩评论

暂无评论...
验证码 换一张
取 消