query.java~3~

来自「是个管理员管理系统」· JAVA~3~ 代码 · 共 48 行

JAVA~3~
48
字号
package 图书管理;

import java.awt.BorderLayout;
import java.awt.Frame;

import javax.swing.JDialog;
import javax.swing.JPanel;
import com.borland.jbcl.layout.XYLayout;
import com.borland.jbcl.layout.*;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class query extends JDialog {
    public query(Frame owner, String title, boolean modal) {
        super(owner, title, modal);
        try {
            setDefaultCloseOperation(DISPOSE_ON_CLOSE);
            jbInit();
            pack();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

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

    private void jbInit() throws Exception {
        this.getContentPane().setLayout(xYLayout1);
        this.getContentPane().add(jPanel1, new XYConstraints(1, 0, 399, 300));
        jLabel1.setText("书籍编号");
        jPanel1.add(jTextField1, new XYConstraints(164, 87, 186, 65));
        jPanel1.add(jLabel1, new XYConstraints(87, 83, 62, 69));
        jPanel1.add(jButton1, new XYConstraints(104, 191, 157, 56));
        jButton1.setText("查询");
        jPanel1.setLayout(xYLayout2);
    }

    XYLayout xYLayout1 = new XYLayout();
    JPanel jPanel1 = new JPanel();
    XYLayout xYLayout2 = new XYLayout();
    JButton jButton1 = new JButton();
    JLabel jLabel1 = new JLabel();
    JTextField jTextField1 = new JTextField();
}

⌨️ 快捷键说明

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