📄 aboutdialog.java~3~
字号:
/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */import java.awt.*;import java.awt.event.*;public class AboutDialog extends JavaBookDialog implements ActionListener { //------------------------------------------------------------------------------// Data Members//------------------------------------------------------------------------------ private Label l0,l1,l2,l3,l4,l5,l6; private Button button;//------------------------------------------------------------------------------// Constructors//------------------------------------------------------------------------------ public AboutDialog(Frame owner) { super(owner); setTitle("关于"); setLayout(null); setResizable(false); setBackground(Color.lightGray); l0=new Label("本小程序是 算法设计与分析 课程的Project"); l1=new Label("第一作者:岳明021301037"); l2=new Label("合作成员:迟晓艳021301035"); l5=new Label(" 宋杰021301023"); l6=new Label(" "); l3=new Label("计算机科学与技术021班"); l4=new Label("感谢张平宇同学的框架和齐凤亮同学的指导"); button=new Button(" 确定 "); add(l0); add(l1); add(l2); add(l3); add(l4); add(l5); add(l6); add(button); //doLayout(); button.addActionListener(this); }//------------------------------------------------------------------------------// Public Methods:// void actionPerformed ( ActionEvent )//------------------------------------------------------------------------------ public void actionPerformed(ActionEvent event) { setVisible(false); }//------------------------------------------------------------------------------// Protected Methods:// void adjustSize ( )//------------------------------------------------------------------------------ protected void adjustSize() { addNotify(); Insets inset=getInsets(); setSize(inset.left+inset.right+270,inset.top+inset.bottom+185); l0.setBounds(inset.left+15,inset.top,250,20); l1.setBounds(inset.left+15,inset.top+40,250,20); l2.setBounds(inset.left+15,inset.top+60,250,20); l3.setBounds(inset.left+15,inset.top+20,250,20); l5.setBounds(inset.left+15,inset.top+80,250,20); l6.setBounds(inset.left+15,inset.top+100,250,20); l4.setBounds(inset.left+15,inset.top+130,250,20); button.setBounds(inset.left+100,inset.top+155,67,22); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -