开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜