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

📄 aboutdialog.java

📁 一个java编写的记事本
💻 JAVA
字号:
package texteditor4;import java.awt.*;import javax.swing.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class AboutDialog extends JDialog {  JPanel panel1 = new JPanel();  JLabel jLabel1 = new JLabel();  JLabel jLabel2 = new JLabel();  JLabel jLabel3 = new JLabel();  JLabel jLabel4 = new JLabel();  JButton jButton1 = new JButton();  public AboutDialog(Frame frame, String title, boolean modal) {    super(frame, title, modal);    try {      jbInit();      pack();    }    catch(Exception ex) {      ex.printStackTrace();    }  }  public AboutDialog() {    this(null, "", false);  }  private void jbInit() throws Exception {    panel1.setLayout(null);    jLabel1.setToolTipText("");    jLabel1.setVerifyInputWhenFocusTarget(true);    jLabel1.setText("TextEditor   记事本");    jLabel1.setBounds(new Rectangle(83, 32, 264, 22));    jLabel2.setBounds(new Rectangle(83, 57, 264, 22));    jLabel2.setText("Version 1.4");    jLabel3.setBounds(new Rectangle(83, 81, 264, 22));    jLabel3.setText("Copyright (c) 2004");    jLabel4.setBounds(new Rectangle(83, 106, 264, 22));    jLabel4.setText("版权所有:老虎工作室");    jButton1.setBounds(new Rectangle(115, 148, 57, 24));    jButton1.setText("确定");    jButton1.addActionListener(new AboutDialog_jButton1_actionAdapter(this));    getContentPane().add(panel1);    panel1.add(jLabel2, null);    panel1.add(jLabel1, null);    panel1.add(jLabel3, null);    panel1.add(jLabel4, null);    panel1.add(jButton1, null);    this.setSize(300,225);  }  void jButton1_actionPerformed(ActionEvent e) {    dispose();  }}class AboutDialog_jButton1_actionAdapter implements java.awt.event.ActionListener {  AboutDialog adaptee;  AboutDialog_jButton1_actionAdapter(AboutDialog adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.jButton1_actionPerformed(e);  }}

⌨️ 快捷键说明

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