?? aboutjdialog.java
字號:
package xxglxt;
import java.awt.BorderLayout;
import java.awt.Rectangle;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.TitledBorder;
/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
* 關(guān)于作者
*
* @author 徐寒靜
*
*/
public class AboutJDialog extends javax.swing.JDialog {
public AboutJDialog() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
}
{
// Register as a resource user - SWTResourceManager will
// handle the obtaining and disposing of resources
}
private JButton butok;
private JFrame a;
private TitledBorder titledBorder_IL;
private JTextArea jTextArea1;
private JLabel imgJlabel;
JLabel jLabel1 = new JLabel();
/**
* Auto-generated main method to display this JDialog
*/
public AboutJDialog(JFrame frame) {
super(frame);
a = frame;
this.setLayout(null);
this.setResizable(false);
this.setTitle(
"\u5173\u4e8e\u65e0\u540d\u591a\u529f\u80fd\u8ba1\u7b97\u5668");
initGUI();
this.setVisible(true);
}
private void initGUI() {
try {
butok = new JButton();
getContentPane().add(butok, BorderLayout.CENTER);
butok.setText("\u786e\u5b9a");
butok.setBounds(138, 226, 79, 27);
butok.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
a.setEnabled(true);
dispose();
}
});
{
jTextArea1 = new JTextArea(5, 10);
getContentPane().add(jTextArea1);
jTextArea1.setText("\u65e0\u540d\u5de5\u4f5c\u5ba4\u5236\u4f5c\n\u7248\u672c\u53f7\uff1av1.0\n\u7248\u6743\u6240\u6709\uff1a\u65e0\u540d\u5de5\u4f5c\u5ba4\u4fdd\u7559\u6240\u6709\u7248\u6743\n\n\u9664\u4e86\u672c\u62c5\u4fdd\u63d0\u4f9b\u7684\u7279\u5b9a\u5408\u6cd5\u6743\u5229\u5916\uff0c\u6839\u636e\u5404\u5dde\n\u7684\u4e0d\u540c\u6cd5\u5f8b\uff0c\u60a8\u8fd8\u53ef\u80fd\u4eab\u6709\u5176\u4ed6\u6743\u5229\u3002 \u6839\u636e\n\u5404\u4e2a\u56fd\u5bb6\u6216\u5730\u533a\u7684\u4e0d\u540c\u6cd5\u5f8b\uff0c\u60a8\u8fd8\u53ef\u80fd\u4eab\u6709\u5176\n\u4ed6\u6743\u5229\u3002\n\n\n");
jTextArea1.setBounds(121, 0, 273, 220);
jTextArea1.setBorder(getTitledBorder_IL());
jTextArea1.setBackground(new java.awt.Color(0, 128, 255));
jTextArea1.setForeground(new java.awt.Color(0, 0, 160));
jTextArea1.setEnabled(false);
jTextArea1.setDisabledTextColor(new java.awt.Color(0, 64, 128));
}
{
imgJlabel = new JLabel();
getContentPane().add(imgJlabel);
imgJlabel.setBounds(0, 0, 121, 220);
}
setSize(400, 300);
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
a.setEnabled(true);
}
}
);
} catch (Exception e) {
e.printStackTrace();
}
}
private TitledBorder getTitledBorder_IL() {
if (titledBorder_IL == null) {
titledBorder_IL = BorderFactory.createTitledBorder("");
titledBorder_IL.setTitle("\u8bf4\u660e");
}
return titledBorder_IL;
}
private void jbInit() throws Exception {
jLabel1.setToolTipText("");
jLabel1.setBounds(new Rectangle(12, 14, 103, 200));
this.getContentPane().add(jLabel1);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -