📄 about.java
字号:
package studentsystem;import java.awt.*;import javax.swing.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class about extends JDialog { JPanel panel1 = new JPanel(); ImageIcon icon=new ImageIcon("xuan.jpg");//设置背景图片 JLabel jLabel1 = new JLabel(icon); JButton sure = new JButton(); public about(Frame frame, String title, boolean modal) { super(frame, title, true); try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } public about() { this(null, "", true); } private void jbInit() throws Exception { jLabel1.setText(""); jLabel1.setBounds(new Rectangle(5, 5, 392, 250)); panel1.setBounds(new Rectangle(0, 299, 1, 1)); panel1.setLayout(null); jLabel1.setText(""); jLabel1.setBounds(new Rectangle(-43, 0, 414, 245)); sure.setBounds(new Rectangle(109, 243, 79, 29)); sure.setFont(new java.awt.Font("Dialog", 0, 15)); sure.setText("确 定"); jLabel1.setToolTipText("leeyingzhang制作!"); sure.addActionListener(new about_sure_actionAdapter(this)); this.setTitle("呵呵!"); this.getContentPane().add(panel1, null); this.getContentPane().add(sure, null); this.getContentPane().add(jLabel1, null); this.setBounds(200,200,330,310); this.getContentPane().setLayout(null); this.setVisible(true); } void sure_actionPerformed(ActionEvent e) { this.dispose(); }}class about_sure_actionAdapter implements java.awt.event.ActionListener { about adaptee; about_sure_actionAdapter(about adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.sure_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -