JFileChooser保存路径的问题有哪些呢?
JFileChooser保存路径的问题有哪些呢?
那就是将上次的路径保存在注册表里,然后在启动JFileChooser之前,将路径从注册表读出来,再把它作为参数初始化JFileChooser,考试大荐:下面是具体代码: Preferences pref = Preferences。userRoot()。
node("/com/lingyun"); String lastPath = pref。get("lastPath", ""); JFileChooser chooser = null; if(!lastPath。equals("")){ chooser = new JFileChooser(lastPath); System。
out。println("lastPath:" + lastPath); } else chooser = new JFileChooser(); chooser。setFileFilter(new PdfFilter()); chooser。
showOpenDialog(this); File choosedFile = chooser。getSelectedFile(); www。Examda。CoM。
答:是键盘上的"Print Screen..."键吗. 要你想截图大话,按了以上的键以后,打开系统的"画图工具"或"word"--粘贴就行,然后保存.详情>>
问:深度技术 Windows 7 快速安装版 V2015(64位) 下载好在电脑 如...
答:硬盘安装(适合无光驱或者不想浪费光盘的用户,但是需要你有一个可以使用的Windows系统) 请提取ISO中的“WINXPSP3.GHO”和“GHO镜像安装器.E...详情>>
答:网卡驱动安装下 本地连接有吗详情>>