jianjie.java

来自「JAVA数据库编程实例随书源码 .容易学习.掌握」· Java 代码 · 共 53 行

JAVA
53
字号
package train_table;import java.awt.*;import javax.swing.*;import com.borland.jbcl.layout.*;public class jianjie extends JFrame {  private JPanel jPanel1 = new JPanel();  private XYLayout xYLayout1 = new XYLayout();  private JLabel jLabel1 = new JLabel();  private XYLayout xYLayout2 = new XYLayout();  private JLabel jLabel2 = new JLabel();  private JLabel jLabel3 = new JLabel();  private JLabel jLabel4 = new JLabel();  private JLabel jLabel5 = new JLabel();  private JLabel jLabel6 = new JLabel();  private JLabel jLabel7 = new JLabel();  private JLabel jLabel8 = new JLabel();  public jianjie() {    try {      jbInit();      pack();    }    catch(Exception e) {      e.printStackTrace();    }  }  private void jbInit() throws Exception {    this.getContentPane().setLayout(xYLayout1);    jLabel1.setText("本实例为学术研究,与实际系统有一定差距,有意深入研究");    jPanel1.setLayout(xYLayout2);    jLabel2.setText("者请与我们联系,以便完善该系统。");    jLabel3.setText("联系方式:");    jLabel4.setText("电话    :010-62207727");    jLabel5.setText("EMAIL:zheng_qf_1979@sina.com.cn");    jLabel6.setText("地址   :北京师范大学");    jLabel7.setText("制作单位:");    jLabel8.setText("北师大计算机系");    xYLayout1.setWidth(400);    xYLayout1.setHeight(274);    this.setTitle("个人简介");    this.getContentPane().add(jPanel1,         new XYConstraints(-1, 0, 396, 249));    jPanel1.add(jLabel1, new XYConstraints(75, 30, -1, -1));    jPanel1.add(jLabel2, new XYConstraints(51, 58, -1, -1));    jPanel1.add(jLabel3,  new XYConstraints(75, 88, -1, -1));    jPanel1.add(jLabel4, new XYConstraints(98, 115, -1, -1));    jPanel1.add(jLabel5, new XYConstraints(99, 142, -1, -1));    jPanel1.add(jLabel6,   new XYConstraints(100, 168, -1, -1));    jPanel1.add(jLabel7, new XYConstraints(76, 195, -1, -1));    jPanel1.add(jLabel8, new XYConstraints(99, 215, -1, -1));  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?