資源簡介
Java 設置Windows的文件屬性(基礎篇-實例416).zip
代碼片段和文件信息
package?com.lzw;
import?java.awt.Color;
import?java.awt.Dimension;
import?java.awt.EventQueue;
import?java.awt.GridBagConstraints;
import?java.awt.GridBagLayout;
import?java.awt.Insets;
import?java.awt.event.ActionEvent;
import?java.awt.event.ActionListener;
import?java.io.File;
import?java.io.IOException;
import?java.util.Scanner;
import?javax.swing.Icon;
import?javax.swing.JButton;
import?javax.swing.JCheckBox;
import?javax.swing.JFileChooser;
import?javax.swing.Jframe;
import?javax.swing.JLabel;
import?javax.swing.JPanel;
import?javax.swing.JTextField;
import?javax.swing.SwingConstants;
import?javax.swing.border.EmptyBorder;
import?javax.swing.border.LineBorder;
import?javax.swing.filechooser.FileSystemView;
public?class?SetWindowsFileAttribute?extends?Jframe?{
????
????private?JPanel?contentPane;
????private?JTextField?pathField;
????private?JLabel?fileLabel;
????private?File?file;
????private?JCheckBox?docCheckBox;
????private?JCheckBox?hideChe
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????301??2010-06-08?09:25??.classpath
?????文件?????????379??2010-09-07?16:37??.project
?????文件?????????635??2010-06-08?09:25??.settings\org.eclipse.jdt.core.prefs
?????文件?????????794??2013-11-21?08:41??bin\com\lzw\SetWindowsFileAttribute$1.class
?????文件?????????768??2013-11-21?08:41??bin\com\lzw\SetWindowsFileAttribute$2.class
?????文件?????????765??2013-11-21?08:41??bin\com\lzw\SetWindowsFileAttribute$3.class
?????文件?????????767??2013-11-21?08:41??bin\com\lzw\SetWindowsFileAttribute$4.class
?????文件????????7603??2013-11-21?08:41??bin\com\lzw\SetWindowsFileAttribute.class
?????文件???????10577??2010-06-08?12:55??src\com\lzw\SetWindowsFileAttribute.java
- 上一篇:Java 把窗體壓縮成ZIP文件
- 下一篇:Java 快速批量移動文件
評論
共有 條評論