Diff for /FM2SQL/Attic/FM2SQL.java between versions 1.29 and 1.30

version 1.29, 2004/03/12 11:48:57 version 1.30, 2004/03/15 12:30:51
Line 875  public class FM2SQL extends JFrame imple Line 875  public class FM2SQL extends JFrame imple
        ByteArrayOutputStream b = new ByteArrayOutputStream();         ByteArrayOutputStream b = new ByteArrayOutputStream();
        PrintStream stream = new PrintStream(b);         PrintStream stream = new PrintStream(b);
        e4.printStackTrace(stream);         e4.printStackTrace(stream);
        showErrorDialog(b.toString(), "Update of table failed");         showErrorDialog(b.toString(), "Delete of table failed");
        fmInstance.setEnabled(true);         fmInstance.setEnabled(true);
      }       }
   
Line 987  public class FM2SQL extends JFrame imple Line 987  public class FM2SQL extends JFrame imple
           convert.setText("Update Tables");            convert.setText("Update Tables");
           convert.setActionCommand("Update Tables");            convert.setActionCommand("Update Tables");
           mode = Convert.DataBase.UPDATE_MODE;            mode = Convert.DataBase.UPDATE_MODE;
           } else if (database.mode == Convert.DataBase.UPDATE_MODE)
           {
             deleteItem.setSelected(true);
             convert.setText("Delete Tables");
             convert.setActionCommand("Delete Tables");
             mode = Convert.DataBase.DELETE_MODE;
         }          }
         delimiter=database.delimiter;          delimiter=database.delimiter;
         database.bean.getConnection();          database.bean.getConnection();
Line 1016  public class FM2SQL extends JFrame imple Line 1022  public class FM2SQL extends JFrame imple
           Object idcomboBox=tC.tableModel.getValueAt(index,ID_INDEX);            Object idcomboBox=tC.tableModel.getValueAt(index,ID_INDEX);
               
           indices[i] = index;            indices[i] = index;
           if(comboBox!=null) ((JComboBox)comboBox).setSelectedItem(database.layouts.get(i));              if (comboBox != null)
             {
               String layout = database.layouts.get(i).toString();
               ((JComboBox) comboBox).setSelectedItem(layout);
               if (layout != "")
               {
                 bean.makeQuery("select * from" + bean.getQC() + table + bean.getQC() + " layout " + bean.getQC() + layout + bean.getQC(), 1);
   
                 Vector idVec = bean.getColumnNames();
                 if (idVec == null)
                   idVec = new Vector();
                 idVec.add(0, "");
                  ((JComboBox) idcomboBox).setModel(new DefaultComboBoxModel(idVec));
               }
             
             }
           if(idcomboBox!=null)((JComboBox)idcomboBox).setSelectedItem(bean.ids.get(i));            if(idcomboBox!=null)((JComboBox)idcomboBox).setSelectedItem(bean.ids.get(i));
           tC.tableModel.fireTableDataChanged();            tC.tableModel.fireTableDataChanged();
           noDBUpdate = false;            noDBUpdate = false;
Line 1275  public class FM2SQL extends JFrame imple Line 1296  public class FM2SQL extends JFrame imple
             JComboBox box = ((JComboBox) model.getValueAt(row, ID_INDEX));              JComboBox box = ((JComboBox) model.getValueAt(row, ID_INDEX));
             box.setModel(new DefaultComboBoxModel(idVec));              box.setModel(new DefaultComboBoxModel(idVec));
             box.setSelectedItem(id);              box.setSelectedItem(id);
               //box.repaint();
              tC.tableModel.fireTableCellUpdated(row,ID_INDEX);
           }            }
                 
         }          }

Removed from v.1.29  
changed lines
  Added in v.1.30


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>