【Java开源代码栏目提醒】:本文主要为网学会员提供JF_view_gys.java,希望对需要JF_view_gys.java网友有所帮助,学习一下!
package appjxc.view;
import java.awt.*;
import javax.swing.*;
import appjxc.constrol.JTkeyAdapter;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import appjxc.model.Obj_gys;
import appjxc.dao.AdapterDao;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.table.DefaultTableModel;
import appjxc.constrol.BuildTable;
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyAdapter;
import javax.swing.border.EtchedBorder;
import javax.swing.border.Border;
import java.awt.Dimension;
public class JF_view_gys extends JInternalFrame {
BorderLayout borderLayout1 = new BorderLayout();
JTabbedPane jTabbedPane1 = new JTabbedPane();
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
BorderLayout borderLayout2 = new BorderLayout();
JPanel jPanel3 = new JPanel();
JPanel jPanel4 = new JPanel();
JButton jBadd = new JButton();
JButton jBsave = new JButton();
JButton jBexit = new JButton();
GridLayout gridLayout1 = new GridLayout();
JLabel jLabel1 = new JLabel();
JTextField jTextField1 = new JTextField();
JLabel jLabel2 = new JLabel();
JTextField jTextField2 = new JTextField();
JLabel jLabel3 = new JLabel();
JTextField jTextField3 = new JTextField();
JLabel jLabel4 = new JLabel();
JTextField jTextField4 = new JTextField();
JLabel jLabel5 = new JLabel();
JTextField jTextField5 = new JTextField();
JLabel jLabel6 = new JLabel();
JTextField jTextField6 = new JTextField();
JLabel jLabel7 = new JLabel();
JTextField jTextField7 = new JTextField();
JLabel jLabel8 = new JLabel();
JTextField jTextField8 = new JTextField();
JLabel jLabel9 = new JLabel();
JTextField jTextField9 = new JTextField();
JLabel jLabel10 = new JLabel();
JTextField jTextField10 = new JTextField();
FlowLayout flowLayout1 = new FlowLayout();
JButton jBmodi = new JButton();
BorderLayout borderLayout3 = new BorderLayout();
JScrollPane jScrollPane1 = new JScrollPane();
JTable jTable1 = new JTable();
JButton jBlookAll = new JButton();
JPanel jPanel6 = new JPanel();
FlowLayout flowLayout2 = new FlowLayout();
JButton jButton2 = new JButton();
JButton jBquery = new JButton();
JLabel jLabel11 = new JLabel();
JComboBox jComboBox1 = new JComboBox();
JLabel jLabel12 = new JLabel();
JComboBox jComboBox2 = new JComboBox();
JLabel jLabel13 = new JLabel();
JTextField jTvalue = new JTextField();
BuildTable buildTable = new BuildTable();
JLabel jLabel14 = new JLabel();
JTextField jTbh = new JTextField();
Border border1 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
Color.white, new Color(148, 145, 140));
public JF_view_gys() {
try {
jbInit();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
jComboBox1.addItem("供应商编号");
jComboBox1.addItem("拼音编码");
jComboBox2.addItem(">");
jComboBox2.addItem("like");
jComboBox2.addItem("<");
getContentPane().setLayout(borderLayout1);
jPanel1.setLayout(borderLayout2);
jBadd.setText("添加");
jBadd.addActionListener(new JF_view_gys_jBadd_actionAdapter(this));
jBsave.setText("存盘");
jBsave.addActionListener(new JF_view_gys_jBsave_actionAdapter(this));
jBexit.setText("关闭");
jBexit.addActionListener(new JF_view_gys_jBexit_actionAdapter(this));
jPanel4.setLayout(gridLayout1);
gridLayout1.setColumns(4);
gridLayout1.setHgap(6);
gridLayout1.setRows(5);
jLabel1.setText("供应商编号");
jTextField1.setText("");
jLabel2.setText("供应商名称");
jTextField2.setText("");
jLabel3.setText("拼音编码");
jTextField3.setText("");
jLabel4.setText("供应商地址");
jTextField4.setText("");
jLabel5.setText("所属地区");
jTextField5.setText("");
jLabel6.setText("邮政编码");
jTextField6.setText("");
jLabel7.setText("联系电话");
jTextField7.setText("");
jLabel8.setText("联系人");
jTextField8.setText("");
jLabel9.setText("开户银行");
jTextField9.setText("");
jLabel10.setText("开户账号");
jTextField10.setText("");
jPanel3.setLayout(flowLayout1);
flowLayout1.setAlignment(FlowLayout.CENTER);
flowLayout1.setHgap(10);
borderLayout2.setHgap(1);
borderLayout2.setVgap(5);
jBmodi.setText("修改");
jBmodi.addActionListener(new JF_view_gys_jBmodi_actionAdapter(this));
jPanel2.setLayout(borderLayout3);
jTabbedPane1.addChangeListener(new
JF_view_gys_jTabbedPane1_changeAdapter(this));
jBlookAll.setText("全部查看");
jBlookAll.addActionListener(new JF_view_gys_jBlookAll_actionAdapter(this));
jPanel6.setLayout(flowLayout2);
flowLayout2.setAlignment(FlowLayout.CENTER);
jButton2.setText("退出");
jButton2.addActionListener(new JF_view_gys_jButton2_actionAdapter(this));
jBquery.setText("检索");
jBquery.addActionListener(new JF_view_gys_jButton3_actionAdapter(this));
jLabel11.setText("类别:");
jComboBox1.setMinimumSize(new Dimension(100, 22));
jComboBox1.setPreferredSize(new Dimension(110, 22));
jLabel12.setText("运算符:");
jLabel13.setText("数值:");
jTvalue.setPreferredSize(new Dimension(169, 26));
jComboBox2.setPreferredSize(new Dimension(50, 22));
jLabel14.setText("请输入供应商编号:");
jTbh.setPreferredSize(new Dimension(200, 28));
jTbh.setText("");
jTbh.addKeyListener(new JF_view_gys_jTbh_keyAdapter(this));
jPanel6.setBorder(BorderFactory.createLoweredBevelBorder());
jPanel3.setBorder(BorderFactory.createLoweredBevelBorder());
jPanel4.setBorder(BorderFactory.createLoweredBevelBorder());
jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.
HORIZONTAL_SCROLLBAR_ALWAYS);
jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.
VERTICAL_SCROLLBAR_ALWAYS);
// jTbh.addActionListener(new JF_view_gys_jTbh_actionAdapter(this));
this.getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);
jTabbedPane1.add(jPanel1, "基本信息录入");
jTabbedPane1.add(jPanel2, "浏览全部数据");
jPanel1.add(jPanel4, java.awt.BorderLayout.CENTER);
jPanel4.add(jLabel1);
jPanel4.add(jTextField1);
jPanel4.add(jLabel2);
jPanel4.add(jTextField2);
jPanel4.add(jLabel3);
jPanel4.add(jTextField3);
jPanel4.add(jLabel4);
jPanel4.add(jTextField4);
jPanel4.add(jLabel5);
jPanel4.add(jTextField5);
jPanel4.add(jLabel6);
jPanel4.add(jTextField6);
jPanel4.add(jLabel7);
jPanel4.add(jTextField7);
jPanel4.add(jLabel8);
jPanel4.add(jTextField8);
jPanel4.add(jLabel9);
jPanel4.add(jTextField9);
jPanel4.add(jLabel10);
jPanel4.add(jTextField10);
jPanel3.ad
上一篇:
JF_view_gradesub.java
下一篇:
计算机网络毕业论文