📄 basicinfo.java~1~
字号:
package studentms;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;import javax.swing.border.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class basicInfo extends JFrame{ JPanel contentInfo; XYLayout xYLayout1 = new XYLayout(); JPanel jPanel1 = new JPanel(); JLabel jLabel1 = new JLabel(); XYLayout xYLayout2 = new XYLayout(); JLabel jLabel2 = new JLabel(); JLabel jLabel3 = new JLabel(); JLabel jLabel4 = new JLabel(); JLabel jLabel5 = new JLabel(); JLabel jLabel6 = new JLabel(); JLabel jLabel7 = new JLabel(); Border border1; JTextField jTextField2 = new JTextField(); Border border2; JTextField jTextField1 = new JTextField(); Border border3; JTextField jTextField3 = new JTextField(); Border border4; JTextField jTextField4 = new JTextField(); JTextField jTextField5 = new JTextField(); JTextField jTextField6 = new JTextField(); JTextField jTextField7 = new JTextField(); Border border5; public basicInfo() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { border1 = BorderFactory.createLineBorder(Color.black,2); border2 = BorderFactory.createLineBorder(Color.black,1); border3 = BorderFactory.createLineBorder(Color.black,1); border4 = BorderFactory.createLineBorder(Color.black,1); border5 = BorderFactory.createLineBorder(Color.black,1); this.getContentPane().setLayout(xYLayout1); jLabel1.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel1.setText("姓名:"); jPanel1.setLayout(xYLayout2); jPanel1.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel2.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel2.setText("性别:"); jLabel3.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel3.setText("学号:"); jLabel4.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel4.setText("民族:"); jLabel5.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel5.setText("所在班级:"); jLabel6.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel6.setText("出生日期:"); jLabel7.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel7.setText("籍贯:"); jTextField2.setBorder(border2); jTextField2.setText("jTextField2"); jTextField1.setBorder(border3); jTextField1.setText("jTextField1"); jTextField3.setBorder(border4); jTextField3.setText("jTextField3"); jTextField4.setBorder(border5); jTextField4.setText("jTextField4"); jTextField5.setBorder(border5); jTextField5.setText("jTextField5"); jTextField6.setBorder(border5); jTextField6.setText("jTextField6"); jTextField7.setBorder(border5); jTextField7.setText("jTextField7"); jPanel1.add(jLabel3, new XYConstraints(29, 15, 38, 19)); jPanel1.add(jLabel2, new XYConstraints(30, 97, 45, 17)); jPanel1.add(jLabel7, new XYConstraints(31, 132, 44, 19)); jPanel1.add(jLabel6, new XYConstraints(170, 95, 69, 20)); jPanel1.add(jLabel5, new XYConstraints(170, 59, 61, 17)); jPanel1.add(jLabel1, new XYConstraints(30, 56, -1, -1)); jPanel1.add(jTextField1, new XYConstraints(73, 15, 72, 20)); jPanel1.add(jTextField6, new XYConstraints(235, 97, 72, 20)); jPanel1.add(jTextField2, new XYConstraints(234, 13, 72, 20)); jPanel1.add(jLabel4, new XYConstraints(185, 15, 39, 19)); jPanel1.add(jTextField4, new XYConstraints(235, 54, 72, 20)); jPanel1.add(jTextField3, new XYConstraints(73, 54, 72, 20)); jPanel1.add(jTextField5, new XYConstraints(73, 97, 72, 20)); jPanel1.add(jTextField7, new XYConstraints(73, 136, 235, 20)); this.getContentPane().add(jPanel1, new XYConstraints(25, 83, 360, 181)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -