?? helpjdialog.java
字號:
package xxglxt;
import java.awt.event.*;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextArea;
/**
* 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.
*/
public class HelpJDialog extends javax.swing.JDialog {
public HelpJDialog() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
}
/**
* Auto-generated main method to display this JDialog
*/
JFrame f = new JFrame();
private JButton jButton1;
private JTextArea jlab;
public HelpJDialog(JFrame frame) {
super(frame);
f = frame;
initGUI();
}
private void initGUI() {
try {
this.setLayout(null);
this.setTitle("幫助主題");
this.setResizable(false);
this.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
f.setEnabled(true);
}
}
);
{
jButton1 = new JButton();
jlab=new JTextArea();
getContentPane().add(jButton1);
jButton1.setText("OK");
jButton1.setBounds(155, 230, 62, 23);
jlab.setText("這麼容易還要幫助,你想什麼呢?"+'\n'+'\n'+"如有問題請找技術(shù)支持李琳"+'\n'+'\n'
+"如要簽名請找作者徐寒靜"+'\n'+'\n'+"口合口合口合~~~"
+'\n');
jlab.setDisabledTextColor(new java.awt.Color(0, 64, 128));
jlab.setEnabled(false);
jlab.setBounds(50,50,250,170);
getContentPane().add(jlab);
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
f.setEnabled(true);
dispose();
}
});
}
setSize(400, 300);
this.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
this.getContentPane().setLayout(null);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -