📄 dialog_about.java~26~
字号:
package personauth;
import java.awt.*;
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Rectangle;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2006</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class Dialog_about extends JDialog {
JPanel panel1 = new JPanel();
BorderLayout borderLayout1 = new BorderLayout();
JLabel jLabel1 = new JLabel();
public Dialog_about(Frame owner, String title, boolean modal) {
super(owner, title, modal);
try {
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
jbInit();
//System.out.print("hh");
} catch (Exception exception) {
exception.printStackTrace();
}
}
public Dialog_about() {
this(new Frame(), "Dialog_about", true);
}
private void jbInit() throws Exception {
panel1.setLayout(borderLayout1);
jLabel1.setText("jLabel1");
jLabel1.setBounds(new Rectangle(21, 22, 42, 20));
this.getContentPane().setLayout(null);
this.setResizable(false);
this.setTitle("关于我们");
this.getContentPane().add(panel1, null);
this.getContentPane().add(jLabel1, null);
this.setSize(300,100);
this.setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -