--- FM2SQL/Attic/FM2SQL.java 2004/03/15 12:52:00 1.32 +++ FM2SQL/Attic/FM2SQL.java 2004/06/01 18:58:08 1.37 @@ -1,3 +1,17 @@ +/* + * FM2SQL.java -- Main program Filemaker to SQL Converter + * Copyright (C) 2003 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 java.awt.Cursor; import java.awt.Dimension; import java.awt.Font; @@ -18,6 +32,7 @@ import java.io.FileWriter; import java.io.PrintStream; import java.sql.SQLException; import java.sql.Statement; +import java.text.ParseException; import java.util.Collections; import java.util.Iterator; import java.util.Vector; @@ -74,10 +89,12 @@ public class FM2SQL extends JFrame imple private JCheckBoxMenuItem deleteItem; int mode = -1; - final static int ID_INDEX = 1; - final static int SELECT_INDEX = 2; - final static int CREATE_INDEX = 3; - final static int LAYOUT_INDEX = 4; + final static int STATUS_INDEX = 0; + final static int NAME_INDEX = 1; + final static int ID_INDEX = 2; + final static int SELECT_INDEX = 3; + final static int CREATE_INDEX = 4; + final static int LAYOUT_INDEX = 5; @@ -1038,8 +1055,10 @@ public class FM2SQL extends JFrame imple // add Selections ListSelectionModel lm = tC.table.getSelectionModel(); for(int i=0;i