?? teacherjdialog.java
字號:
package com.hb.stumanagesys;
import com.cloudgarden.layout.AnchorConstraint;
import com.cloudgarden.layout.AnchorLayout;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
/**
* 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 TeacherJDialog extends javax.swing.JDialog {
private JPanel jPanel1;
private JLabel SexLabel1;
private JLabel AgeLabel1;
private JLabel TeacherIdLabel1;
private JLabel NameLabel1;
private JButton mainButton1;
/**
* Auto-generated main method to display this JDialog
*/
public static void main(String[] args) {
JFrame frame = new JFrame();
TeacherJDialog inst = new TeacherJDialog(frame);
inst.setVisible(true);
}
public TeacherJDialog(JFrame frame) {
super(frame);
initGUI();
}
private void initGUI() {
try {
getContentPane().setLayout(null);
{
jPanel1 = new JPanel();
getContentPane().add(jPanel1);
jPanel1.setBounds(6, 4, 60, 30);
{
TeacherIdLabel1 = new JLabel();
jPanel1.add(TeacherIdLabel1);
TeacherIdLabel1.setText("\u5de5\u53f7");
}
}
{
mainButton1 = new JButton();
getContentPane().add(mainButton1);
mainButton1.setText("ok");
mainButton1.setBounds(392, 315, 63, 28);
}
{
NameLabel1 = new JLabel();
getContentPane().add(NameLabel1);
NameLabel1.setText("\u59d3\u540d");
NameLabel1.setBounds(35, 42, 63, 28);
}
{
AgeLabel1 = new JLabel();
getContentPane().add(AgeLabel1);
AgeLabel1.setText("\u5e74\u9f84");
AgeLabel1.setBounds(35, 126, 63, 28);
}
{
SexLabel1 = new JLabel();
getContentPane().add(SexLabel1);
SexLabel1.setText("\u6027\u522b");
SexLabel1.setBounds(49, 203, 63, 28);
}
this.setSize(518, 395);
} catch (Exception e) {
e.printStackTrace();
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -