![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e897. Determining If a File Is HiddenJFileChooser chooser = new JFileChooser(); // Create a File instance of the file File file = new File("c:\\Program Files"); // (this file is not hidden) file = new File("c:\\IO.SYS"); // (this file is hidden) // Check if file is hidden boolean isHidden = chooser.getFileSystemView().isHiddenFile(file);
© 2002 Addison-Wesley. |