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

📄 documenteditoraboutbox.java

📁 GPRS数据通讯软件源码
💻 JAVA
字号:
/* * Copyright (c) 2007, Sun Microsystems, Inc. * All rights reserved. *  * Redistribution and use in source and binary forms, with or without  * modification, are permitted provided that the following conditions are met: *  *  * Redistributions of source code must retain the above copyright notice,  *    this list of conditions and the following disclaimer. *  * Redistributions in binary form must reproduce the above copyright  *    notice, this list of conditions and the following disclaimer in  *    the documentation and/or other materials provided with the distribution. *  * Neither the name of Sun Microsystems, Inc. nor the names of its  *    contributors may be used to endorse or promote products derived  *    from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *//* * DocumentEditorAboutBox.java */package documenteditor;import org.jdesktop.application.Action;public class DocumentEditorAboutBox extends javax.swing.JDialog {    public DocumentEditorAboutBox(java.awt.Frame parent) {        super(parent);        initComponents();        getRootPane().setDefaultButton(closeButton);    }    @Action public void closeAboutBox() {        setVisible(false);    }    /** 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() {        closeButton = new javax.swing.JButton();        javax.swing.JLabel appTitleLabel = new javax.swing.JLabel();        javax.swing.JLabel versionLabel = new javax.swing.JLabel();        javax.swing.JLabel appVersionLabel = new javax.swing.JLabel();        javax.swing.JLabel vendorLabel = new javax.swing.JLabel();        javax.swing.JLabel appVendorLabel = new javax.swing.JLabel();        javax.swing.JLabel homepageLabel = new javax.swing.JLabel();        javax.swing.JLabel appHomepageLabel = new javax.swing.JLabel();        javax.swing.JLabel appDescLabel = new javax.swing.JLabel();        javax.swing.JLabel imageLabel = new javax.swing.JLabel();        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(documenteditor.DocumentEditorApp.class).getContext().getResourceMap(DocumentEditorAboutBox.class);        setTitle(resourceMap.getString("title")); // NOI18N        setIconImage(null);        setModal(true);        setName("aboutBox"); // NOI18N        setResizable(false);        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(documenteditor.DocumentEditorApp.class).getContext().getActionMap(DocumentEditorAboutBox.class, this);        closeButton.setAction(actionMap.get("closeAboutBox")); // NOI18N        appTitleLabel.setFont(appTitleLabel.getFont().deriveFont(appTitleLabel.getFont().getStyle() | java.awt.Font.BOLD, appTitleLabel.getFont().getSize()+4));        appTitleLabel.setText(resourceMap.getString("Application.title")); // NOI18N        versionLabel.setFont(versionLabel.getFont().deriveFont(versionLabel.getFont().getStyle() | java.awt.Font.BOLD));        versionLabel.setText(resourceMap.getString("versionLabel.text")); // NOI18N        appVersionLabel.setText(resourceMap.getString("Application.version")); // NOI18N        vendorLabel.setFont(vendorLabel.getFont().deriveFont(vendorLabel.getFont().getStyle() | java.awt.Font.BOLD));        vendorLabel.setText(resourceMap.getString("vendorLabel.text")); // NOI18N        appVendorLabel.setText(resourceMap.getString("Application.vendor")); // NOI18N        homepageLabel.setFont(homepageLabel.getFont().deriveFont(homepageLabel.getFont().getStyle() | java.awt.Font.BOLD));        homepageLabel.setText(resourceMap.getString("homepageLabel.text")); // NOI18N        appHomepageLabel.setText(resourceMap.getString("Application.homepage")); // NOI18N        appDescLabel.setText(resourceMap.getString("appDescLabel.text")); // NOI18N        imageLabel.setIcon(resourceMap.getIcon("imageLabel.icon")); // NOI18N        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());        getContentPane().setLayout(layout);        layout.setHorizontalGroup(            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)            .add(layout.createSequentialGroup()                .add(imageLabel)                .add(18, 18, 18)                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)                    .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)                            .add(versionLabel)                            .add(vendorLabel)                            .add(homepageLabel))                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)                            .add(appVersionLabel)                            .add(appVendorLabel)                            .add(appHomepageLabel)))                    .add(org.jdesktop.layout.GroupLayout.LEADING, appTitleLabel)                    .add(org.jdesktop.layout.GroupLayout.LEADING, appDescLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)                    .add(closeButton))                .addContainerGap())        );        layout.setVerticalGroup(            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)            .add(imageLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)            .add(layout.createSequentialGroup()                .addContainerGap()                .add(appTitleLabel)                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)                .add(appDescLabel)                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)                    .add(versionLabel)                    .add(appVersionLabel))                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)                    .add(vendorLabel)                    .add(appVendorLabel))                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)                    .add(homepageLabel)                    .add(appHomepageLabel))                .add(155, 155, Short.MAX_VALUE)                .add(closeButton)                .addContainerGap())        );        pack();    }// </editor-fold>//GEN-END:initComponents        // Variables declaration - do not modify//GEN-BEGIN:variables    private javax.swing.JButton closeButton;    // End of variables declaration//GEN-END:variables    }

⌨️ 快捷键说明

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