下面为运行图
部分代码
主要代码:public AddSupplierPanel() {
setLayout(null);
setBounds(10, 10, 600, 350);
addPanel = new JPanel();
addPanel.setLayout(null);
addPanel.setBounds(40, 30, 520, 260);
addPanel.setBorder(BorderFactory.createTitledBorder("添加供应商信息"));
JLabel lblId = new JLabel(" Id: ");
lblId.setBounds(20, 20, 100, 30);
addSupplierId = new JTextField();
addSupplierId.setBounds(100, 20, 160, 20);
addSupplierId.addKeyListener(new InputKeyListener());
JLabel lblCode = new JLabel(" 邮编:");
lblCode.setBounds(270, 20, 100, 30);
................................
JLabel lblConnec = new JLabel(&