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

📄 about.java

📁 本人写的一个非常简单的度量单位换算程序
💻 JAVA
字号:
/* * About.java * * Created on 04/11/2004 *//** * * @author  Ben Lin */public class About extends javax.swing.JDialog {        /** Creates new form About */    public About(java.awt.Frame parent, boolean modal) {        super(parent, modal);        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.     */    private void initComponents() {//GEN-BEGIN:initComponents        textAbout = new javax.swing.JTextArea();        OK = new javax.swing.JButton();        getContentPane().setLayout(null);        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);        setTitle("About");        setResizable(false);        textAbout.setFont(new java.awt.Font("Courier", 0, 14));        textAbout.setForeground(new java.awt.Color(255, 0, 0));        textAbout.setText("My converter V1.0\n\nAuthor: Ben Lin\nUniversity of Sunderlnad, UK");        textAbout.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);        textAbout.setEditable(false);        getContentPane().add(textAbout);        textAbout.setBounds(20, 40, 350, 80);        OK.setFont(new java.awt.Font("Times New Roman", 0, 12));        OK.setMnemonic('o');        OK.setText("OK");        OK.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                OKActionPerformed(evt);            }        });        getContentPane().add(OK);        OK.setBounds(160, 140, 60, 23);        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();        setBounds((screenSize.width-398)/2, (screenSize.height-218)/2, 398, 218);    }//GEN-END:initComponents    private void OKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_OKActionPerformed        setVisible(false);        dispose();        // TODO add your handling code here:    }//GEN-LAST:event_OKActionPerformed        // Variables declaration - do not modify//GEN-BEGIN:variables    private javax.swing.JButton OK;    private javax.swing.JTextArea textAbout;    // End of variables declaration//GEN-END:variables    }

⌨️ 快捷键说明

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