about.java

来自「java实现的计算器 java实现的计算器」· Java 代码 · 共 58 行

JAVA
58
字号
package Cursor;import java.awt.*;import javax.swing.*;import javax.swing.event.*;/** * <p>Title:  calculatordemo</p> * <p>Description: This is a calculatordemo</p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author 刘勋华 * @version 1.0 */public class About extends JDialog {  JPanel panel1 = new JPanel();  GridBagLayout gridBagLayout1 = new GridBagLayout();  Label label1 = new Label();  Label label2 = new Label();  public About(Frame frame, String title, boolean modal) {    super(frame, title, modal);    try {      jbInit();      pack();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  public About() {    this(null, "", false);  }  private void jbInit() throws Exception {    panel1.setLayout(gridBagLayout1);    label1.setFont(new java.awt.Font("Dialog", 1, 30));    label1.setForeground(SystemColor.activeCaption);    label1.setText("软件工程(2)班");    label2.setFont(new java.awt.Font("Dialog", 0, 30));    label2.setForeground(SystemColor.activeCaption);    label2.setText("刘勋华  22");    panel1.setBackground(SystemColor.inactiveCaptionText);    panel1.setToolTipText("作者资料");    this.setTitle("作者资料");    getContentPane().add(panel1);    panel1.add(label1,  new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));    panel1.add(label2,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0            ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));  }}

⌨️ 快捷键说明

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