--- FM2SQL/Attic/FM.java 2003/12/05 11:46:39 1.1 +++ FM2SQL/Attic/FM.java 2004/11/18 11:17:43 1.3 @@ -1,3 +1,17 @@ +/* + * FM.java -- Old main programm -- just to test the filemaker jdbc driver + * Filemake to SQL Converter + * Copyright (C) 2004 Robert Gordesch (rogo@mpiwg-berlin.mpg.de) + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. Please read license.txt for the full details. A copy of + * the GPL may be found at http://www.gnu.org/copyleft/lgpl.html You should + * have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple + * Place, Suite 330, Boston, MA 02111-1307 USA Created on 15.09.2003 by + * rogo + */ import javax.swing.*; import javax.swing.event.*; import java.awt.event.*; @@ -334,7 +348,7 @@ public class FM extends JFrame implement result.title = "Database features"; result.setVisible(true); String name = result.writeResult(); - if (result.counter == 1) + if (ResultWindow.counter == 1) appendLog(result.title, name); } catch (Exception e2) { @@ -423,7 +437,7 @@ public class FM extends JFrame implement // System.out.println("Update done"); //if (e.getType() == e.DELETE) //System.out.println("Delete done"); - if (e.getType() == e.UPDATE && !noDBUpdate) + if (e.getType() == TableModelEvent.UPDATE && !noDBUpdate) { int row = e.getFirstRow(), col = e.getColumn(); String columnName = table.tableModel.getColumnName(col);