資源簡介
原理是調(diào)用Process 執(zhí)行rar命令,所以需要本計(jì)安裝rar軟件才可以執(zhí)行此示例
代碼片段和文件信息
package?com.mingrisoft;
import?java.awt.BorderLayout;
import?java.awt.Color;
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.FileOutputStream;
import?java.io.IOException;
import?java.util.Scanner;
import?javax.swing.BoxLayout;
import?javax.swing.JButton;
import?javax.swing.JFileChooser;
import?javax.swing.Jframe;
import?javax.swing.JLabel;
import?javax.swing.JPanel;
import?javax.swing.JProgressBar;
import?javax.swing.JScrollPane;
import?javax.swing.JTable;
import?javax.swing.JTextField;
import?javax.swing.border.EmptyBorder;
import?javax.swing.border.EtchedBorder;
import?javax.swing.f
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????379??2011-05-23?19:43??.project
?????目錄???????????0??2012-02-22?14:42??.settings\
?????文件?????????629??2011-05-23?19:43??.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2012-02-22?14:42??src\
?????目錄???????????0??2012-02-22?14:42??src\com\
?????目錄???????????0??2012-02-22?14:42??src\com\mingrisoft\
?????文件???????12146??2011-05-23?19:43??src\com\mingrisoft\CompressTxtToRAR.java
?????文件?????????301??2011-05-23?19:43??.classpath
評(píng)論
共有 條評(píng)論