📄 frmabout.java
字号:
package MulitePageEditor;
import javax.swing.*;
//import com.borland.jbcl.layout.XYLayout;
//import com.borland.jbcl.layout.*;
import java.awt.event.*;
import java.awt.event.ActionListener;
/**
* <p>
* Title: 关于
* </p>
*
* <p>
* Description: 关于多页文本编辑器
* </p>
*
* <p>
* Copyright: Copyright (c) 2006-2008
* </p>
*
* <p>
* Company: 雨轩工作室
* </p>
*
* @author 风中过客
* @version V1.0
*/
public class frmAbout extends JFrame
{
public frmAbout()
{
try
{
jbInit();
this.setTitle("关于多页文本编辑器");
this.setSize(420,270);
this.setLocationByPlatform(true);
this.setVisible(true);
} catch (Exception ex)
{
ex.printStackTrace();
}
}
private void jbInit() throws Exception
{
this.getContentPane().setLayout(xYLayout1);
xYLayout1.setWidth(403);
xYLayout1.setHeight(245);
jButton1.setText("确定");
jButton1.addActionListener(new frmAbout_jButton1_actionAdapter(this));
jLabel2.setText("版本: V1.0");
jLabel3.setText("版权所有: copyright (C) 2006-2008");
jLabel4.setText("作者: 风中过客");
jLabel5.setText("QQ: 466171084");
jLabel6.setText("msn: feng_zhong_guo_ke@hotmail.com");
jLabel7.setText("声明: 本小程序是我写的第一个Java程序,不当之处,还请指教");
this.getContentPane().setBackground(
UIManager.getColor("SplitPane.dividerFocusColor"));
this.getContentPane().add(jLabel3, new XYConstraints(108, 64, -1, -1));
this.getContentPane().add(jLabel1, new XYConstraints(155, 14, -1, -1));
this.getContentPane().add(jLabel2, new XYConstraints(166, 37, -1, -1));
this.getContentPane().add(jLabel4, new XYConstraints(150, 90, -1, -1));
this.getContentPane().add(jLabel5, new XYConstraints(149, 114, -1, -1));
this.getContentPane().add(jLabel6, new XYConstraints(93, 136, -1, -1));
this.getContentPane().add(jLabel7, new XYConstraints(38, 153, 354, 35));
this.getContentPane()
.add(jButton1, new XYConstraints(292, 194, 98, -1));
jLabel1.setText("多页文本编辑器");
}
XYLayout xYLayout1 = new XYLayout();
JButton jButton1 = new JButton();
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JLabel jLabel5 = new JLabel();
JLabel jLabel6 = new JLabel();
JLabel jLabel7 = new JLabel();
public void jButton1_actionPerformed(ActionEvent e)
{
this.dispose();
}
protected void processWindowEvent(WindowEvent e)
{
if (e.getID() == WindowEvent.WINDOW_CLOSING)
{
this.dispose();
}
super.processWindowEvent(e);
}
}
class frmAbout_jButton1_actionAdapter implements ActionListener
{
private frmAbout adaptee;
frmAbout_jButton1_actionAdapter(frmAbout adaptee)
{
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e)
{
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -