阅读背景:

如何在Swing中使用Drag-and-Drop来获取文件路径?

来源:互联网 

I have a JTextField in my swing application that holds the file path of a file selected to be used. Currently I have a JFileChooser that is used to populate this value. However, I would like to add the ability for a user to drag-and-drop a file onto this JTextField and have it place the file path of that file into the JTextField instead of always having using the JFileChooser.I have a JTextField in my swing application tha




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: