Java – better Jfilechooser to replace OS X, Linux?
•
Java
At least under OS X, Jfilechooser will generate a very unfamiliar open dialog box. It does not support selecting it at the beginning of the file name or displaying triangles
Is anyone aware of third-party alternatives with more fully functional behavior? Ideally, I want one for every major platform I know xfiledialog is used for windows, but what about Mac and Linux / Unix?
By comparison:
Solution
java. awt. You may need to specify whether FileDialog can perform the operation you want
System.setProperty("apple.awt.fileDialogForDirectories","true");
If you want to get a directory
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码