⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stopjdialog.java

📁 多线程扫描IP段
💻 JAVA
字号:
/* * StopJDialog.java * * Created on 2008年6月23日, 下午4:23 *//** * * @author  Administrator */public class StopJDialog extends javax.swing.JDialog {        /** Creates new form StopJDialog */    public StopJDialog(java.awt.Frame parent) {        super(parent);        this.setTitle("正在扫描!!!!!!");        this.setSize(200,300);        this.setVisible(true);        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.     */    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents    private void initComponents() {        jButton1 = new javax.swing.JButton();        jLabel1 = new javax.swing.JLabel();        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);        jButton1.setText("stop");        jButton1.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                jButton1ActionPerformed(evt);            }        });        jLabel1.setText("Please Wait!!!!!!!!!");        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());        getContentPane().setLayout(layout);        layout.setHorizontalGroup(            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()                .addContainerGap(130, Short.MAX_VALUE)                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 249, javax.swing.GroupLayout.PREFERRED_SIZE)                .addGap(21, 21, 21))            .addGroup(layout.createSequentialGroup()                .addGap(162, 162, 162)                .addComponent(jButton1)                .addContainerGap(179, Short.MAX_VALUE))        );        layout.setVerticalGroup(            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()                .addContainerGap(80, Short.MAX_VALUE)                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)                .addGap(18, 18, 18)                .addComponent(jButton1)                .addGap(124, 124, 124))        );        pack();    }// </editor-fold>//GEN-END:initComponents    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed             ChatMainJFrame.stop=true;             this.setVisible(false);             while(true)             {                 if(ChatMainJFrame.finish==true)                 {                    jLabel1.setText("Finish!!!!!!");                    jButton1.setText("ok");                    break;                           }             }// TODO add your handling code here:    }//GEN-LAST:event_jButton1ActionPerformed        /**     * @param args the command line arguments     */                                     // Variables declaration - do not modify//GEN-BEGIN:variables    private javax.swing.JButton jButton1;    private javax.swing.JLabel jLabel1;    // End of variables declaration//GEN-END:variables    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -