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