inoutsearchdialog.java~3~

来自「eidtplus注册码.txt eidtplus注册码.txt」· JAVA~3~ 代码 · 共 116 行

JAVA~3~
116
字号
package parkingsystem;

import java.awt.*;
import javax.swing.*;
import java.awt.Dimension;
import javax.swing.Box;
import java.awt.Rectangle;
import java.awt.BorderLayout;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import com.borland.dbswing.JdbNavToolBar;
import com.borland.dbswing.JdbNavField;
import com.borland.dbswing.TableScrollPane;
import com.borland.dbswing.JdbStatusLabel;
import com.borland.dbswing.JdbTable;

public class InOutSearchDialog
    extends JDialog {
  JPanel panel1 = new JPanel();
  BorderLayout borderLayout1 = new BorderLayout();
  JSplitPane jSplitPane1 = new JSplitPane();
  JPanel jPanel1 = new JPanel();
  JPanel jPanel2 = new JPanel();
  XYLayout xYLayout2 = new XYLayout();
  JLabel jLabel1 = new JLabel();
  JLabel jLabel2 = new JLabel();
  JLabel jLabel3 = new JLabel();
  JLabel jLabel4 = new JLabel();
  JLabel jLabel5 = new JLabel();
  JRadioButton jRadioButton1 = new JRadioButton();
  JRadioButton jRadioButton2 = new JRadioButton();
  JTextField jTextField1 = new JTextField();
  JTextField jTextField2 = new JTextField();
  ButtonGroup buttonGroup1 = new ButtonGroup();
  JButton jButton1 = new JButton();
  JButton jButton2 = new JButton();
  BorderLayout borderLayout2 = new BorderLayout();
  JPanel jPanel3 = new JPanel();
  XYLayout xYLayout1 = new XYLayout();
  JdbNavToolBar jdbNavToolBar1 = new JdbNavToolBar();
  JLabel jLabel6 = new JLabel();
  JdbNavField jdbNavField1 = new JdbNavField();
  TableScrollPane tableScrollPane1 = new TableScrollPane();
  JdbStatusLabel jdbStatusLabel1 = new JdbStatusLabel();
  JdbTable jdbTable1 = new JdbTable();
  public InOutSearchDialog(Frame owner, String title, boolean modal) {
    super(owner, title, modal);
    try {
      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
      jbInit();
      pack();
    }
    catch (Exception exception) {
      exception.printStackTrace();
    }
  }

  public InOutSearchDialog() {
    this(new Frame(), "InOutSearchDialog", false);
  }

  private void jbInit() throws Exception {
    panel1.setLayout(borderLayout1);
    panel1.setPreferredSize(new Dimension(500, 400));
    jSplitPane1.setOrientation(JSplitPane.VERTICAL_SPLIT);
    jPanel2.setLayout(borderLayout2);
    jPanel1.setLayout(xYLayout2);
    jLabel1.setText("请选择查询类型:");
    jLabel2.setText("请输入查询时间段:");
    jLabel3.setText("开始时间:");
    jLabel4.setText("格式如:2000-10-12 或 2000-10-12 5:20");
    jLabel5.setText("截止时间:");
    jRadioButton1.setSelected(true);
    jRadioButton1.setText("jRadioButton1");
    jRadioButton2.setText("jRadioButton1");
    jButton1.setText("确 定");
    jButton2.setText("清 空");
    jPanel3.setLayout(xYLayout1);
    jdbNavToolBar1.setButtonStateInsert(JdbNavToolBar.HIDDEN);
    jdbNavToolBar1.setButtonStateDelete(JdbNavToolBar.HIDDEN);
    jdbNavToolBar1.setButtonStatePost(JdbNavToolBar.HIDDEN);
    jdbNavToolBar1.setButtonStateCancel(JdbNavToolBar.HIDDEN);
    jdbNavToolBar1.setButtonStateDitto(JdbNavToolBar.HIDDEN);
    jdbNavToolBar1.setButtonStateSave(JdbNavToolBar.HIDDEN);
    jdbNavToolBar1.setButtonStateRefresh(JdbNavToolBar.HIDDEN);
    jLabel6.setText("Find:");
    jdbNavField1.setText("jdbNavField1");
    jdbStatusLabel1.setText("record of 2");
    getContentPane().add(panel1);
    panel1.add(jSplitPane1, java.awt.BorderLayout.CENTER);
    jSplitPane1.add(jPanel1, JSplitPane.TOP);
    jSplitPane1.add(jPanel2, JSplitPane.BOTTOM);
    jPanel2.add(jPanel3, java.awt.BorderLayout.NORTH);
    jPanel1.add(jLabel1, new XYConstraints(28, 15, 99, 22));
    jSplitPane1.setDividerLocation(100);
    buttonGroup1.add(jRadioButton1);
    jPanel1.add(jLabel2, new XYConstraints(28, 43, 114, 22));
    buttonGroup1.add(jRadioButton2);
    jPanel1.add(jLabel4, new XYConstraints(156, 42, 229, 22));
    jPanel1.add(jRadioButton2, new XYConstraints(265, 15, -1, -1));
    jPanel1.add(jRadioButton1, new XYConstraints(145, 15, -1, -1));
    jPanel1.add(jTextField1, new XYConstraints(107, 71, 99, 22));
    jPanel1.add(jLabel5, new XYConstraints(214, 71, 74, 22));
    jPanel1.add(jTextField2, new XYConstraints(294, 71, 99, 22));
    jPanel1.add(jButton1, new XYConstraints(408, 20, -1, -1));
    jPanel1.add(jButton2, new XYConstraints(408, 63, -1, -1));
    jPanel1.add(jLabel3, new XYConstraints(28, 71, 80, 22));
    jPanel3.add(jdbNavToolBar1, new XYConstraints(1, 1, 177, 36));
    jPanel3.add(jdbNavField1, new XYConstraints(235, 11, 120, -1));
    jPanel3.add(jLabel6, new XYConstraints(188, 13, -1, -1));
    jPanel2.add(tableScrollPane1, java.awt.BorderLayout.CENTER);
    tableScrollPane1.getViewport().add(jdbTable1);
    this.getContentPane().add(jdbStatusLabel1, java.awt.BorderLayout.SOUTH);
  }
}

⌨️ 快捷键说明

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