📄 e894. copying the filename path from a jfilechooser dialog to the clipboard.txt
字号:
Typing control-c in a file chooser dialog copies the names of the selected files to the clipboard. If there is only a single selected file, the absolute path of the file is copied to the clipboard. Here is an example:
C:\Documents and Settings\Administrator\Start Menu\Programs\Internet Explorer.lnk
If there are multiple selected files, the absolute paths of the selected files are wrapped in HTML code and copied to the clipboard. Here is an example of the HTML code:
<html><ol>
<li>C:\Documents and Settings\Administrator\Start Menu\Programs\Internet Explorer.lnk
<li>C:\Documents and Settings\Administrator\Start Menu\Programs\MSN Messenger Service.lnk
<li>C:\Documents and Settings\Administrator\Start Menu\Programs\Outlook Express.lnk
<li>C:\Documents and Settings\Administrator\Start Menu\Programs\Windows Media Player.lnk
</ol></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -