--- FM2SQL/Attic/FM2SQL.java 2004/10/29 10:28:10 1.45 +++ FM2SQL/Attic/FM2SQL.java 2004/11/18 11:17:42 1.46 @@ -64,6 +64,7 @@ import javax.swing.JTextArea; import javax.swing.JTextField; import javax.swing.KeyStroke; import javax.swing.ListSelectionModel; +import javax.swing.SwingConstants; import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; import javax.swing.table.TableModel; @@ -1374,7 +1375,7 @@ public class FM2SQL extends JFrame imple // 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(); System.out.println("Got in " + row + " " + col); @@ -1629,7 +1630,7 @@ public class FM2SQL extends JFrame imple //content.setBorder(BorderFactory.createRaisedBevelBorder()); content.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS)); title = new JLabel("Progress of conversion"); - title.setHorizontalTextPosition(title.CENTER); + title.setHorizontalTextPosition(SwingConstants.CENTER); titlePanel.add(title); buttonPanel.add(cancel); // content.add(titlePanel); @@ -1723,7 +1724,7 @@ public class FM2SQL extends JFrame imple delimiter.addActionListener(al); content.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS)); title = new JLabel("Enter Delimiter "); - title.setHorizontalTextPosition(title.CENTER); + title.setHorizontalTextPosition(SwingConstants.CENTER); titlePanel.add(title); buttonPanel.add(ok); buttonPanel.add(cancel); @@ -1842,7 +1843,7 @@ public class FM2SQL extends JFrame imple passwd.addActionListener(al); content.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS)); title = new JLabel("Enter user and password "); - title.setHorizontalTextPosition(title.CENTER); + title.setHorizontalTextPosition(SwingConstants.CENTER); titlePanel.add(title); buttonPanel.add(ok); buttonPanel.add(cancel);