📄 gaokaobaoming.java~6~
字号:
package untitled2;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class gaoKaoBaoMing extends JFrame { JTextField jTextField1 = new JTextField(); JLabel jLabel1 = new JLabel(); Label label1 = new Label(); JTextField jTextField2 = new JTextField(); JList jList1 = new JList(); JButton jButton1 = new JButton(); GridBagLayout gridBagLayout1 = new GridBagLayout(); public gaoKaoBaoMing() { try { jbInit(); } catch(Exception ex) { ex.printStackTrace(); } } void jbInit() throws Exception { this.getContentPane().setLayout(gridBagLayout1); jLabel1.setFont(new java.awt.Font("Dialog", 0, 13)); jLabel1.setText("请输入需要高考的年级"); label1.setFont(new java.awt.Font("Dialog", 0, 13)); label1.setLocale(java.util.Locale.getDefault()); label1.setText("请输入国家教委统一编号"); jTextField1.setText(""); jTextField2.setText(""); jButton1.setFont(new java.awt.Font("Dialog", 0, 12)); jButton1.setText("生成准考证号"); this.setSize(new Dimension(400, 300)); this.setTitle("欢迎您进入高考报名界面"); this.getContentPane().add(jList1, new GridBagConstraints(0, 3, 2, 1, 1.0, 1.0 ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(12, 0, 2, 0), 400, 146)); this.getContentPane().add(label1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(37, 39, 0, 0), 0, 0)); this.getContentPane().add(jTextField2, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(37, 12, 0, 81), 119, 0)); this.getContentPane().add(jButton1, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0 ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(21, 57, 0, 47), 7, 0)); this.getContentPane().add(jLabel1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(10, 42, 0, 0), 13, 6)); this.getContentPane().add(jTextField1, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0 ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(13, 12, 0, 81), 119, 0)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -