JF_view_gys.java
上传用户:whbcdz
上传日期:2008-08-04
资源大小:7683k
文件大小:21k
源码类别:

JavaScript

开发平台:

Java

  1. package appjxc.view;
  2. import java.awt.*;
  3. import javax.swing.*;
  4. import appjxc.constrol.JTkeyAdapter;
  5. import java.awt.event.ActionEvent;
  6. import java.awt.event.ActionListener;
  7. import appjxc.model.Obj_gys;
  8. import appjxc.dao.AdapterDao;
  9. import javax.swing.event.ChangeEvent;
  10. import javax.swing.event.ChangeListener;
  11. import javax.swing.table.DefaultTableModel;
  12. import appjxc.constrol.BuildTable;
  13. import java.awt.event.KeyListener;
  14. import java.awt.event.KeyEvent;
  15. import java.awt.event.KeyAdapter;
  16. import javax.swing.border.EtchedBorder;
  17. import javax.swing.border.Border;
  18. import java.awt.Dimension;
  19. public class JF_view_gys extends JInternalFrame {
  20.     BorderLayout borderLayout1 = new BorderLayout();
  21.     JTabbedPane jTabbedPane1 = new JTabbedPane();
  22.     JPanel jPanel1 = new JPanel();
  23.     JPanel jPanel2 = new JPanel();
  24.     BorderLayout borderLayout2 = new BorderLayout();
  25.     JPanel jPanel3 = new JPanel();
  26.     JPanel jPanel4 = new JPanel();
  27.     JButton jBadd = new JButton();
  28.     JButton jBsave = new JButton();
  29.     JButton jBexit = new JButton();
  30.     GridLayout gridLayout1 = new GridLayout();
  31.     JLabel jLabel1 = new JLabel();
  32.     JTextField jTextField1 = new JTextField();
  33.     JLabel jLabel2 = new JLabel();
  34.     JTextField jTextField2 = new JTextField();
  35.     JLabel jLabel3 = new JLabel();
  36.     JTextField jTextField3 = new JTextField();
  37.     JLabel jLabel4 = new JLabel();
  38.     JTextField jTextField4 = new JTextField();
  39.     JLabel jLabel5 = new JLabel();
  40.     JTextField jTextField5 = new JTextField();
  41.     JLabel jLabel6 = new JLabel();
  42.     JTextField jTextField6 = new JTextField();
  43.     JLabel jLabel7 = new JLabel();
  44.     JTextField jTextField7 = new JTextField();
  45.     JLabel jLabel8 = new JLabel();
  46.     JTextField jTextField8 = new JTextField();
  47.     JLabel jLabel9 = new JLabel();
  48.     JTextField jTextField9 = new JTextField();
  49.     JLabel jLabel10 = new JLabel();
  50.     JTextField jTextField10 = new JTextField();
  51.     FlowLayout flowLayout1 = new FlowLayout();
  52.     JButton jBmodi = new JButton();
  53.     BorderLayout borderLayout3 = new BorderLayout();
  54.     JScrollPane jScrollPane1 = new JScrollPane();
  55.     JTable jTable1 = new JTable();
  56.     JButton jBlookAll = new JButton();
  57.     JPanel jPanel6 = new JPanel();
  58.     FlowLayout flowLayout2 = new FlowLayout();
  59.     JButton jButton2 = new JButton();
  60.     JButton jBquery = new JButton();
  61.     JLabel jLabel11 = new JLabel();
  62.     JComboBox jComboBox1 = new JComboBox();
  63.     JLabel jLabel12 = new JLabel();
  64.     JComboBox jComboBox2 = new JComboBox();
  65.     JLabel jLabel13 = new JLabel();
  66.     JTextField jTvalue = new JTextField();
  67.     BuildTable buildTable = new BuildTable();
  68.     JLabel jLabel14 = new JLabel();
  69.     JTextField jTbh = new JTextField();
  70.     Border border1 = BorderFactory.createEtchedBorder(EtchedBorder.RAISED,
  71.             Color.white, new Color(148, 145, 140));
  72.     public JF_view_gys() {
  73.         try {
  74.             jbInit();
  75.         } catch (Exception exception) {
  76.             exception.printStackTrace();
  77.         }
  78.     }
  79.     private void jbInit() throws Exception {
  80.         jComboBox1.addItem("供应商编号");
  81.         jComboBox1.addItem("拼音编码");
  82.         jComboBox2.addItem(">");
  83.         jComboBox2.addItem("like");
  84.         jComboBox2.addItem("<");
  85.         getContentPane().setLayout(borderLayout1);
  86.         jPanel1.setLayout(borderLayout2);
  87.         jBadd.setText("添加");
  88.         jBadd.addActionListener(new JF_view_gys_jBadd_actionAdapter(this));
  89.         jBsave.setText("存盘");
  90.         jBsave.addActionListener(new JF_view_gys_jBsave_actionAdapter(this));
  91.         jBexit.setText("关闭");
  92.         jBexit.addActionListener(new JF_view_gys_jBexit_actionAdapter(this));
  93.         jPanel4.setLayout(gridLayout1);
  94.         gridLayout1.setColumns(4);
  95.         gridLayout1.setHgap(6);
  96.         gridLayout1.setRows(5);
  97.         jLabel1.setText("供应商编号");
  98.         jTextField1.setText("");
  99.         jLabel2.setText("供应商名称");
  100.         jTextField2.setText("");
  101.         jLabel3.setText("拼音编码");
  102.         jTextField3.setText("");
  103.         jLabel4.setText("供应商地址");
  104.         jTextField4.setText("");
  105.         jLabel5.setText("所属地区");
  106.         jTextField5.setText("");
  107.         jLabel6.setText("邮政编码");
  108.         jTextField6.setText("");
  109.         jLabel7.setText("联系电话");
  110.         jTextField7.setText("");
  111.         jLabel8.setText("联系人");
  112.         jTextField8.setText("");
  113.         jLabel9.setText("开户银行");
  114.         jTextField9.setText("");
  115.         jLabel10.setText("开户账号");
  116.         jTextField10.setText("");
  117.         jPanel3.setLayout(flowLayout1);
  118.         flowLayout1.setAlignment(FlowLayout.CENTER);
  119.         flowLayout1.setHgap(10);
  120.         borderLayout2.setHgap(1);
  121.         borderLayout2.setVgap(5);
  122.         jBmodi.setText("修改");
  123.         jBmodi.addActionListener(new JF_view_gys_jBmodi_actionAdapter(this));
  124.         jPanel2.setLayout(borderLayout3);
  125.         jTabbedPane1.addChangeListener(new
  126.                                        JF_view_gys_jTabbedPane1_changeAdapter(this));
  127.         jBlookAll.setText("全部查看");
  128.         jBlookAll.addActionListener(new JF_view_gys_jBlookAll_actionAdapter(this));
  129.         jPanel6.setLayout(flowLayout2);
  130.         flowLayout2.setAlignment(FlowLayout.CENTER);
  131.         jButton2.setText("退出");
  132.         jButton2.addActionListener(new JF_view_gys_jButton2_actionAdapter(this));
  133.         jBquery.setText("检索");
  134.         jBquery.addActionListener(new JF_view_gys_jButton3_actionAdapter(this));
  135.         jLabel11.setText("类别:");
  136.         jComboBox1.setMinimumSize(new Dimension(100, 22));
  137.         jComboBox1.setPreferredSize(new Dimension(110, 22));
  138.         jLabel12.setText("运算符:");
  139.         jLabel13.setText("数值:");
  140.         jTvalue.setPreferredSize(new Dimension(169, 26));
  141.         jComboBox2.setPreferredSize(new Dimension(50, 22));
  142.         jLabel14.setText("请输入供应商编号:");
  143.         jTbh.setPreferredSize(new Dimension(200, 28));
  144.         jTbh.setText("");
  145.         jTbh.addKeyListener(new JF_view_gys_jTbh_keyAdapter(this));
  146.         jPanel6.setBorder(BorderFactory.createLoweredBevelBorder());
  147.         jPanel3.setBorder(BorderFactory.createLoweredBevelBorder());
  148.         jPanel4.setBorder(BorderFactory.createLoweredBevelBorder());
  149.         jScrollPane1.setHorizontalScrollBarPolicy(JScrollPane.
  150.                                                   HORIZONTAL_SCROLLBAR_ALWAYS);
  151.         jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.
  152.                                                 VERTICAL_SCROLLBAR_ALWAYS);
  153.         // jTbh.addActionListener(new JF_view_gys_jTbh_actionAdapter(this));
  154.         this.getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);
  155.         jTabbedPane1.add(jPanel1, "基本信息录入");
  156.         jTabbedPane1.add(jPanel2, "浏览全部数据");
  157.         jPanel1.add(jPanel4, java.awt.BorderLayout.CENTER);
  158.         jPanel4.add(jLabel1);
  159.         jPanel4.add(jTextField1);
  160.         jPanel4.add(jLabel2);
  161.         jPanel4.add(jTextField2);
  162.         jPanel4.add(jLabel3);
  163.         jPanel4.add(jTextField3);
  164.         jPanel4.add(jLabel4);
  165.         jPanel4.add(jTextField4);
  166.         jPanel4.add(jLabel5);
  167.         jPanel4.add(jTextField5);
  168.         jPanel4.add(jLabel6);
  169.         jPanel4.add(jTextField6);
  170.         jPanel4.add(jLabel7);
  171.         jPanel4.add(jTextField7);
  172.         jPanel4.add(jLabel8);
  173.         jPanel4.add(jTextField8);
  174.         jPanel4.add(jLabel9);
  175.         jPanel4.add(jTextField9);
  176.         jPanel4.add(jLabel10);
  177.         jPanel4.add(jTextField10);
  178.         jPanel3.add(jLabel14);
  179.         jPanel3.add(jTbh);
  180.         jPanel3.add(jBmodi);
  181.         jPanel3.add(jBadd);
  182.         jPanel3.add(jBsave);
  183.         jPanel3.add(jBexit);
  184.         jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER);
  185.         jPanel2.add(jPanel6, java.awt.BorderLayout.NORTH);
  186.         jPanel6.add(jLabel11);
  187.         jPanel6.add(jComboBox1);
  188.         jPanel6.add(jLabel12);
  189.         jPanel6.add(jComboBox2);
  190.         jPanel6.add(jLabel13);
  191.         jPanel6.add(jTvalue);
  192.         jPanel6.add(jBquery);
  193.         jPanel6.add(jBlookAll);
  194.         jPanel6.add(jButton2);
  195.         jScrollPane1.getViewport().add(jTable1);
  196.         jPanel1.add(jPanel3, java.awt.BorderLayout.NORTH);
  197.         jTextField1.addKeyListener(new JTkeyAdapter(jTextField2));
  198.         jTextField2.addKeyListener(new JTkeyAdapter(jTextField3));
  199.         jTextField3.addKeyListener(new JTkeyAdapter(jTextField4));
  200.         jTextField4.addKeyListener(new JTkeyAdapter(jTextField5));
  201.         jTextField5.addKeyListener(new JTkeyAdapter(jTextField6));
  202.         jTextField6.addKeyListener(new JTkeyAdapter(jTextField7));
  203.         jTextField7.addKeyListener(new JTkeyAdapter(jTextField8));
  204.         jTextField8.addKeyListener(new JTkeyAdapter(jTextField9));
  205.         jTextField9.addKeyListener(new JTkeyAdapter(jTextField10));
  206.         jTextField10.addKeyListener(new JF_view_gys_jTbh_keyAdapter(this));
  207. //        jTbh.addKeyListener(new KeyStroke());
  208.        /* UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
  209.         SwingUtilities.updateComponentTreeUI(this);*/
  210.         this.setSize(700,300);
  211.         this.setVisible(true);
  212.         this.setTitle("供应商基本信息情况");
  213.         this.setClosable(true);
  214.     }
  215.     public void jBexit_actionPerformed(ActionEvent e) {
  216.         javax.swing.DefaultDesktopManager manger = new DefaultDesktopManager();
  217.         int result = JOptionPane.showOptionDialog(null,"是否真的退出供应商基本信息情况?","系统提示",
  218.                                    JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE,
  219.                                    null,new String[]  {"是","否"},"否");
  220.         if (result == JOptionPane.YES_OPTION) {
  221.             /*try{
  222.                 UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
  223.                 SwingUtilities.updateComponentTreeUI(this);
  224.             }catch(Exception ex){
  225.                 ex.printStackTrace();
  226.             }*/
  227.            manger.closeFrame(this);
  228.         }
  229.     }
  230.     public void jBsave_actionPerformed(ActionEvent e) {
  231.         int result = JOptionPane.showOptionDialog(null,"是否进行供应商基本信息情况存盘?","系统提示",
  232.                                    JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE,
  233.                                    null,new String[]  {"是","否"},"否");
  234.         if (result == JOptionPane.NO_OPTION) return;
  235.         /*---校验数据不允许为空----*/
  236.         JTextField jText = null;
  237.         String className = null;
  238.         int count = jPanel4.getComponentCount();
  239.         for (int i = 0 ; i <= count - 1 ; i++){
  240.             //System.out.println("class = " + jPanel4.getComponent(i).getClass().getName());
  241.             className = jPanel4.getComponent(i).getClass().getName();
  242.             if (className.equals("javax.swing.JTextField")){
  243.                 jText = (JTextField)jPanel4.getComponent(i);
  244.                 if(jText.getText().length() <= 0){
  245.                     JLabel jLstr = null;
  246.                     jLstr = (JLabel)jPanel4.getComponent(i - 1);
  247.                     JOptionPane.showMessageDialog(null,jLstr.getText() + "不允许为空,请录入!!!", "系统提示",
  248.                                                   JOptionPane.ERROR_MESSAGE);
  249.                     jText.requestFocus();
  250.                     return;
  251.                 }
  252.             }
  253.         }
  254.         /*---执行添加数据到数据表中----*/
  255.         Obj_gys objgys = new Obj_gys();
  256.         objgys.setGysbh(jTextField1.getText().trim());
  257.         objgys.setGysmc(jTextField2.getText().trim());
  258.         objgys.setPym(jTextField3.getText().trim());
  259.         objgys.setGysdz(jTextField4.getText().trim());
  260.         objgys.setSsdq(jTextField5.getText().trim());
  261.         objgys.setYzbm(jTextField6.getText().trim());
  262.         objgys.setTel(jTextField7.getText().trim());
  263.         objgys.setLxr(jTextField8.getText().trim());
  264.         objgys.setKhyh(jTextField9.getText().trim());
  265.         objgys.setKhzh(jTextField10.getText().trim());
  266.         //AdapterDao dao = new AdapterDao();
  267.         if (AdapterDao.insertmedicine(objgys)){
  268.             JOptionPane.showMessageDialog(null,"供应商基本数据录入成功","系统提示",JOptionPane.OK_OPTION);
  269.         }else{
  270.             JOptionPane.showMessageDialog(null,"供应商基本数据存盘失败","系统提示",JOptionPane.ERROR_MESSAGE);
  271.         }
  272.     }
  273.     public void jTabbedPane1_stateChanged(ChangeEvent e) {
  274.         int index = jTabbedPane1.getSelectedIndex();
  275.         if (index == 1){
  276.         }
  277.     }
  278.     public void jBlookAll_actionPerformed(ActionEvent e) {
  279.         DefaultTableModel defaultModel ;
  280.         defaultModel = buildTable.getGysTableModel(" from Obj_gys ");
  281.         jTable1.setModel(defaultModel);
  282.         if (defaultModel==null){
  283.             JOptionPane.showMessageDialog(null,"没有查询到该条件下的数据","系统提示",JOptionPane.ERROR_MESSAGE);
  284.             return;
  285.         }
  286.         jTable1.setRowHeight(22);
  287.         jTabbedPane1.setSelectedIndex(1);
  288.     }
  289.     public void jButton2_actionPerformed(ActionEvent e) {
  290.         jBexit_actionPerformed(e);
  291.     }
  292.     public void jBquery_actionPerformed(ActionEvent e) {
  293.         if (jTvalue.getText().trim().length() <= 0 ){
  294.             JOptionPane.showMessageDialog(null,"查询数值不能为空,请输入!!!","系统提示",JOptionPane.ERROR_MESSAGE);
  295.             jTvalue.requestFocus();
  296.             return;
  297.         }
  298.         String queryName,queryYsf,queryValue;
  299.         String[] queryName1 = {"gysbh","pym"};
  300.         int index1 = jComboBox1.getSelectedIndex();
  301.         queryName = queryName1[index1];
  302.         queryYsf = jComboBox2.getSelectedItem().toString().trim();
  303.         if (queryYsf.equals("like") || queryYsf == "like"){
  304.             queryValue = "%" + jTvalue.getText().trim() + "%";
  305.         }else{
  306.             queryValue = jTvalue.getText().trim();
  307.         }
  308.         String queryStr ;
  309.         queryStr = " from Obj_gys  where " +  queryName + " " + queryYsf + " '" +  queryValue + "'";
  310.         DefaultTableModel defaultModel = null;
  311.         defaultModel = buildTable.getGysTableModel(queryStr);
  312.         //System.out.println("defaultModel:" + defaultModel);
  313.         jTable1.setModel(defaultModel);
  314.         if (defaultModel.getRowCount() <= 0 ){
  315.             JOptionPane.showMessageDialog(null,"没有查询到该条件下的数据","系统提示",JOptionPane.ERROR_MESSAGE);
  316.             jTextField1.requestFocus();
  317.             return;
  318.         }
  319.         jTable1.setRowHeight(22);
  320.         jTabbedPane1.setSelectedIndex(1);
  321.     }
  322.     public void jBadd_actionPerformed(ActionEvent e) {
  323.         String QueryStr = null;
  324.         QueryStr = "Select max(g.gysbh) from Obj_gys g";
  325.         java.util.List list = null;
  326.         list = AdapterDao.QueryObject(QueryStr);
  327.         String bh;
  328.         if (list.isEmpty()){
  329.             bh = "1000";
  330.         }else{
  331.             int max = Integer.parseInt(list.get(0).toString()) + 1;
  332.             bh = String.valueOf(max);
  333.         }
  334.         jTextField1.setText(bh);
  335.         jTextField2.setText("");
  336.         jTextField3.setText("");
  337.         jTextField4.setText("");
  338.         jTextField5.setText("");
  339.         jTextField6.setText("");
  340.         jTextField7.setText("");
  341.         jTextField8.setText("");
  342.         jTextField9.setText("");
  343.         jTextField10.setText("");
  344.         jTbh.setText("");
  345.         jTextField2.requestFocus();
  346. //        System.out.println("max(gysbh) = " + bh);
  347.     }
  348.     public void jTbh_keyPressed(KeyEvent e) {
  349.         if (e.getKeyCode() == KeyEvent.VK_ENTER){
  350.             if(e.getSource().equals(jTbh)){
  351.                 String bh = jTbh.getText().trim();
  352.                 if (bh.length() <= 0) {
  353.                     JOptionPane.showMessageDialog(null, "编号不允许为空!!!", "系统提示",
  354.                                                   JOptionPane.ERROR_MESSAGE);
  355.                     jTbh.requestFocus();
  356.                     return;
  357.                 }
  358.                 String QueryStr = null;
  359.                 java.util.List list = null;
  360.                 java.util.Iterator iterator = null;
  361.                 QueryStr = " from Obj_gys where gysbh = '" + bh + "'";
  362.                 list = AdapterDao.QueryObject(QueryStr);
  363.                 if (list.isEmpty()) {
  364.                     JOptionPane.showMessageDialog(null, "编号不存在请重新输入!!!", "系统提示",
  365.                                                   JOptionPane.ERROR_MESSAGE);
  366.                     jTbh.requestFocus();
  367.                     return;
  368.                 }
  369.                 iterator = list.iterator();
  370.                 while (iterator.hasNext()) {
  371.                     Obj_gys objgys = (Obj_gys) iterator.next();
  372.                     jTextField1.setText(objgys.getGysbh());
  373.                     jTextField2.setText(objgys.getGysmc());
  374.                     jTextField3.setText(objgys.getPym());
  375.                     jTextField4.setText(objgys.getGysdz());
  376.                     jTextField5.setText(objgys.getSsdq());
  377.                     jTextField6.setText(objgys.getYzbm());
  378.                     jTextField7.setText(objgys.getTel());
  379.                     jTextField8.setText(objgys.getLxr());
  380.                     jTextField9.setText(objgys.getKhyh());
  381.                     jTextField10.setText(objgys.getKhzh());
  382.                 }
  383.                 jTextField1.setEnabled(false);
  384.                 jTextField2.requestFocus();
  385.           }else if(e.getSource().equals(jTextField10)){
  386.               ActionEvent save = new ActionEvent(jBsave,0,null);
  387.               this.jBsave_actionPerformed(save);
  388.           }
  389.           System.out.print("e.getSource().equals(jTbh)" + e.getSource().equals(jTbh));
  390.             /*if (list.isEmpty()) {
  391.                 JTextField jText = null;
  392.                 int count = 0;
  393.                 count = list.size();
  394.                 for (int i = 0; i < count; i++) {
  395.                     jText = (JTextField) jPanel4.getComponent(i * 2 + 1);
  396.                     System.out.println(jText.getName());
  397.                     jText.setText(list.get(i).toString());
  398.                 }
  399.             }
  400.             System.out.println("list " + list.size());
  401.             System.out.println("bh = " + bh);*/
  402.         }
  403.     }
  404.     public void jBmodi_actionPerformed(ActionEvent e) {
  405.         KeyEvent ke = new KeyEvent(jTbh,0,0,0,KeyEvent.VK_ENTER,'e',0);
  406.         jTbh_keyPressed(ke);
  407.     }
  408. }
  409. class JF_view_gys_jBmodi_actionAdapter implements ActionListener {
  410.     private JF_view_gys adaptee;
  411.     JF_view_gys_jBmodi_actionAdapter(JF_view_gys adaptee) {
  412.         this.adaptee = adaptee;
  413.     }
  414.     public void actionPerformed(ActionEvent e) {
  415.         adaptee.jBmodi_actionPerformed(e);
  416.     }
  417. }
  418. class JF_view_gys_jTbh_keyAdapter extends KeyAdapter {
  419.     private JF_view_gys adaptee;
  420.     JF_view_gys_jTbh_keyAdapter(JF_view_gys adaptee) {
  421.         this.adaptee = adaptee;
  422.     }
  423.     public void keyPressed(KeyEvent e) {
  424.         adaptee.jTbh_keyPressed(e);
  425.     }
  426. }
  427. class JF_view_gys_jBadd_actionAdapter implements ActionListener {
  428.     private JF_view_gys adaptee;
  429.     JF_view_gys_jBadd_actionAdapter(JF_view_gys adaptee) {
  430.         this.adaptee = adaptee;
  431.     }
  432.     public void actionPerformed(ActionEvent e) {
  433.         adaptee.jBadd_actionPerformed(e);
  434.     }
  435. }
  436. class JF_view_gys_jButton3_actionAdapter implements ActionListener {
  437.     private JF_view_gys adaptee;
  438.     JF_view_gys_jButton3_actionAdapter(JF_view_gys adaptee) {
  439.         this.adaptee = adaptee;
  440.     }
  441.     public void actionPerformed(ActionEvent e) {
  442.         adaptee.jBquery_actionPerformed(e);
  443.     }
  444. }
  445. class JF_view_gys_jButton2_actionAdapter implements ActionListener {
  446.     private JF_view_gys adaptee;
  447.     JF_view_gys_jButton2_actionAdapter(JF_view_gys adaptee) {
  448.         this.adaptee = adaptee;
  449.     }
  450.     public void actionPerformed(ActionEvent e) {
  451.         adaptee.jButton2_actionPerformed(e);
  452.     }
  453. }
  454. class JF_view_gys_jBlookAll_actionAdapter implements ActionListener {
  455.     private JF_view_gys adaptee;
  456.     JF_view_gys_jBlookAll_actionAdapter(JF_view_gys adaptee) {
  457.         this.adaptee = adaptee;
  458.     }
  459.     public void actionPerformed(ActionEvent e) {
  460.         adaptee.jBlookAll_actionPerformed(e);
  461.     }
  462. }
  463. class JF_view_gys_jTabbedPane1_changeAdapter implements ChangeListener {
  464.     private JF_view_gys adaptee;
  465.     JF_view_gys_jTabbedPane1_changeAdapter(JF_view_gys adaptee) {
  466.         this.adaptee = adaptee;
  467.     }
  468.     public void stateChanged(ChangeEvent e) {
  469.         adaptee.jTabbedPane1_stateChanged(e);
  470.     }
  471. }
  472. class JF_view_gys_jBsave_actionAdapter implements ActionListener {
  473.     private JF_view_gys adaptee;
  474.     JF_view_gys_jBsave_actionAdapter(JF_view_gys adaptee) {
  475.         this.adaptee = adaptee;
  476.     }
  477.     public void actionPerformed(ActionEvent e) {
  478.         adaptee.jBsave_actionPerformed(e);
  479.     }
  480. }
  481. class JF_view_gys_jBexit_actionAdapter implements ActionListener {
  482.     private JF_view_gys adaptee;
  483.     JF_view_gys_jBexit_actionAdapter(JF_view_gys adaptee) {
  484.         this.adaptee = adaptee;
  485.     }
  486.     public void actionPerformed(ActionEvent e) {
  487.         adaptee.jBexit_actionPerformed(e);
  488.     }
  489. }