AdminWindow.java~2~
上传用户:liming9091
上传日期:2014-10-27
资源大小:3376k
文件大小:2k
源码类别:

Java编程

开发平台:

Java

  1. package uml_gaokai;
  2. import java.awt.*;
  3. import javax.swing.*;
  4. import com.borland.jbcl.layout.*;
  5. /**
  6.  * <p>Title: </p>
  7.  * <p>Description: </p>
  8.  * <p>Copyright: Copyright (c) 2003</p>
  9.  * <p>Company: </p>
  10.  * @author unascribed
  11.  * @version 1.0
  12.  */
  13. public class AdminWindow extends JDialog {
  14.   private JPanel panel1 = new JPanel();
  15.   private XYLayout xYLayout1 = new XYLayout();
  16.   private JButton jButton1 = new JButton();
  17.   private JButton jButton2 = new JButton();
  18.   private JButton jButton3 = new JButton();
  19.   private JButton jButton4 = new JButton();
  20.   private JButton jButton5 = new JButton();
  21.   private JButton jButton6 = new JButton();
  22.   public AdminWindow(Frame frame, String title, boolean modal) {
  23.     super(frame, title, modal);
  24.     try {
  25.       jbInit();
  26.       pack();
  27.     }
  28.     catch(Exception ex) {
  29.       ex.printStackTrace();
  30.     }
  31.   }
  32.   public AdminWindow() {
  33.     this(null, "", false);
  34.   }
  35.   private void jbInit() throws Exception {
  36.     panel1.setLayout(xYLayout1);
  37.     jButton1.setText("顾客登录");
  38.     jButton2.setText("采购员登录");
  39.     jButton3.setText("销售员登录");
  40.     jButton4.setText("经理登录");
  41.     jButton5.setText("用户管理");
  42.     jButton6.setText("数据管理");
  43.     this.getContentPane().add(panel1, BorderLayout.CENTER);
  44.     panel1.add(jButton1, new XYConstraints(0, 0, -1, 33));
  45.     panel1.add(jButton2, new XYConstraints(83, 1, 100, 32));
  46.     panel1.add(jButton3,  new XYConstraints(183, 0, 98, 33));
  47.     panel1.add(jButton4,    new XYConstraints(281, 1, 100, 33));
  48.     panel1.add(jButton5,    new XYConstraints(375, 2, 92, 32));
  49.     panel1.add(jButton6,  new XYConstraints(467, 1, 92, 34));
  50.   }
  51. }