📄 aboutview.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. *//* * NewJDialog.java * * Created on 2009-2-11, 14:27:47 */package com.deskManager.window.contr;import java.awt.Dimension;import java.awt.Toolkit;/** * * @author Administrator */public class AboutView extends javax.swing.JDialog { /** * */ private static final long serialVersionUID = 1L; /** Creates new form NewJDialog */ public AboutView(java.awt.Frame parent) { super(parent, true); initComponents(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); this.setLocation((screenSize.width - this.getSize().width) / 2, (screenSize.height - this.getSize().height) / 2); } /** 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() { icon = new javax.swing.JLabel(); VersionLabel = new javax.swing.JLabel(); Version = new javax.swing.JLabel(); close = new javax.swing.JButton(); AppName = new javax.swing.JLabel(); com = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("com/deskManager/resources/resources"); // NOI18N setTitle(bundle.getString("Application.title")); // NOI18N icon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/deskManager/resources/about.png"))); // NOI18N VersionLabel.setText(bundle.getString("About.versionLabel.text")); // NOI18N Version.setText(bundle.getString("About.version.text")); // NOI18N close.setText(bundle.getString("About.close.text")); // NOI18N close.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeActionPerformed(evt); } }); AppName.setFont(new java.awt.Font("隶书", 0, 24)); // NOI18N AppName.setText(bundle.getString("Application.title")); // NOI18N com.setText(bundle.getString("About.com.text")); // 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() .addComponent(icon) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(AppName) .addGroup(layout.createSequentialGroup() .addComponent(VersionLabel) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(Version)))) .addGroup(layout.createSequentialGroup() .addGap(82, 82, 82) .addComponent(com))) .addContainerGap(144, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(close) .addGap(37, 37, 37)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(icon)) .addGroup(layout.createSequentialGroup() .addGap(40, 40, 40) .addComponent(AppName, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(VersionLabel) .addComponent(Version)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(com) .addGap(8, 8, 8) .addComponent(close))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void closeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeActionPerformed this.dispose();}//GEN-LAST:event_closeActionPerformed // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JLabel AppName; private javax.swing.JLabel Version; private javax.swing.JLabel VersionLabel; private javax.swing.JButton close; private javax.swing.JLabel com; private javax.swing.JLabel icon; // End of variables declaration//GEN-END:variables}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -