📄 aboutwindowsxh.java
字号:
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class Aboutwindowsxh extends JDialog {
JPanel panel1 = new JPanel();
JPanel jPanel1 = new JPanel();
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JButton jButton1 = new JButton();
public Aboutwindowsxh(Frame frame, String title, boolean modal) {
super(frame, title, modal);
try {
jbInit();
pack();
}
catch(Exception ex) {
ex.printStackTrace();
}
}
public Aboutwindowsxh() {
this(null, "", false);
}
private void jbInit() throws Exception {
jLabel1.setText("");//Windows XH copyrights by 辛华
jLabel2.setIcon(new ImageIcon("xh.gif"));
jButton1.setText("确定");
jButton1.addActionListener(new Aboutwindowsxh_jButton1_actionAdapter(this));
getContentPane().add(panel1);
panel1.add(jLabel2);
panel1.add(jLabel1, null);
this.getContentPane().add(jPanel1, BorderLayout.SOUTH);
jPanel1.add(jButton1, null);
this.setLocation(400,300);
this.setSize(300,300);
this.setVisible(true);
this.setTitle("About");
}
void jButton1_actionPerformed(ActionEvent e) {
this.dispose();
}
}
class Aboutwindowsxh_jButton1_actionAdapter implements java.awt.event.ActionListener {
Aboutwindowsxh adaptee;
Aboutwindowsxh_jButton1_actionAdapter(Aboutwindowsxh adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -