JFileChooser is not opening default Win 7 File Explorer [duplicate]

牧云@^-^@ 提交于 2019-12-12 13:58:18

问题


I am using JFileChooser to open the File Explorer in WIN 7 and realized that its opening the old UI , but same SWT FileDialog is opening the WIN 7 File Explorer only.

Is there any specific reason.

JFileChooser:

SWT FileDialog:


回答1:


  • AFAIK this not possible for AWT / Swing, Java 6 / 7 missed that, some implementetion as for WinXP (maybe for Vista too, never used this "middle_Win" version)

  • question about the same issue, incl. code for test

  • there were some promisses about update to later Java7 (not in present time)



来源:https://stackoverflow.com/questions/13471587/jfilechooser-is-not-opening-default-win-7-file-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!