【Java开源代码栏目提醒】:网学会员在Java开源代码频道为大家收集整理了ZipFrame.java提供大家参考,希望对大家有所帮助!
/*
* ZipFrame.java
*
* Created on 2008骞?鏈?3鏃? 涓嬪崍2:29
*/
package com.cdd.tool;
import javax.swing.JOptionPane;
import com.fileBath.util.MyFileChooser;
/**
*
* @author Administrator
*/
public class ZipFrame extends javax.swing.JFrame implements Runnable{
/** Creates new form ZipFrame */
public ZipFrame() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jRadioButton1 = new javax.swing.JRadioButton();
jPanel1 = new javax.swing.JPanel();
messageLabel = new javax.swing.JLabel();
jSeparator2 = new javax.swing.JSeparator();
frontjLabel = new javax.swing.JLabel();
fronzipTextField = new javax.swing.JTextField();
liulanjButton = new javax.swing.JButton();
saveLabel = new javax.swing.JLabel();
saveTextField = new javax.swing.JTextField();
pathButton1 = new javax.swing.JButton();
zipinjButton = new javax.swing.JButton();
exitjButton = new javax.swing.JButton();
jLabel1.setText("jLabel1");
jRadioButton1.setText("jRadioButton1");
setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
messageLabel.setText("鏂囦欢瑙e帇缂╂澘鍧楀彲鏍规嵁鐢ㄦ埛閫夋嫨瀵硅薄杩涜瑙e帇缂╋細");
frontjLabel.setText("瑙e帇鏂囦欢锛?);
liulanjButton.setText("娴忚");
liulanjButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
liulanjButtonActionPerformed(evt);
}
});
saveLabel.setText("淇濆瓨鍦板潃锛?);
pathButton1.setText("娴忚");
pathButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
pathButton1ActionPerformed(evt);
}
});
zipinjButton.setText("鍘嬬缉");
zipinjButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
zipinjButtonActionPerformed(evt);
}
});
exitjButton.setText("閫鍑?);
exitjButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exitjButtonActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap(26, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(saveLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(frontjLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(fronzipTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(saveTextField)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(11, 11, 11)
.addComponent(zipinjButton)
.addGap(48, 48, 48)
.addComponent(exitjButton)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(pathButton1, 0, 0, Short.MAX_VALUE)
.addComponent(liulanjButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(29, 29, 29)
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_