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

📄 waitingwindow.java

📁 使用JavaMail开发的具有发送、接收邮件的应用
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package hjx.sendmail;import java.awt.Dimension;import java.awt.Toolkit;import javax.swing.JWindow;/** * * @author hujx */public class WaitingWindow extends JWindow {        public WaitingWindow(java.awt.Frame parent) {        super(parent);        initComponents();                // Center the dialog at the center of screen        int nWndWidth = getWidth();        int nWndHeight = getHeight();        Toolkit kit = Toolkit.getDefaultToolkit();        Dimension dim = kit.getScreenSize();        setBounds((dim.width - nWndWidth) / 2, (dim.height - nWndHeight) / 2,                nWndWidth, nWndHeight);    }    /** 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">    private void initComponents() {        jProgressBar1 = new javax.swing.JProgressBar();        jLabel1 = new javax.swing.JLabel();        jProgressBar1.setIndeterminate(true);        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/Smile.JPG"))); // NOI18N        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());        getContentPane().setLayout(layout);        layout.setHorizontalGroup(            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(layout.createSequentialGroup()                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)                .addComponent(jLabel1)                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)                .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)                .addContainerGap())        );        layout.setVerticalGroup(            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                    .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)                    .addComponent(jLabel1))                .addContainerGap())        );        pack();    }// </editor-fold>    // Variables declaration - do not modify    private javax.swing.JLabel jLabel1;    private javax.swing.JProgressBar jProgressBar1;    // End of variables declaration}

⌨️ 快捷键说明

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