--- FM2SQL/Attic/FM2SQL.java 2004/06/22 10:33:53 1.39 +++ FM2SQL/Attic/FM2SQL.java 2004/09/22 11:14:10 1.42 @@ -177,7 +177,7 @@ public class FM2SQL extends JFrame imple setIconImage(local); bean = new DBBean(); destBean = new DBBean(); - sourceURLBox = new JComboBox(new String[] { "jdbc:fmpro:http://141.14.237.74:8050", "jdbc:fmpro:http://localhost", "jdbc:postgresql://foxridge/test" }); + sourceURLBox = new JComboBox(new String[] { "jdbc:fmpro:http://141.14.237.74:8050", "jdbc:fmpro:http://localhost", "jdbc:postgresql://foxridge/test","jdbc:sequelink://r583-3:2399" }); sourceURLBox.setEditable(true); sourceURLBox.setFont(new Font("Times New Roman",Font.PLAIN,14)); destURLBox = new JComboBox(new String[] { "jdbc:postgresql://foxridge/test", "jdbc:postgresql://erebos/test1" }); @@ -334,6 +334,8 @@ public class FM2SQL extends JFrame imple { public void windowClosing(WindowEvent e) { + bean.closeAllConnections(); + destBean.closeAllConnections(); System.exit(0); } }); @@ -824,6 +826,8 @@ if(command.equals("use NormanToUnicodeMa } if(command.equals("Quit")) { + bean.closeAllConnections(); + destBean.closeAllConnections(); fmInstance.dispose(); System.exit(0); @@ -1174,7 +1178,7 @@ if(command.equals("use NormanToUnicodeMa } else { - Vector[] vecs = (list > 0) ? destBean.getQueryData(query, dialog, 0) : bean.getQueryData(query, dialog, 0); + Vector[] vecs = (list > 0) ? destBean.getQueryData(query, dialog, 50) : bean.getQueryData(query, dialog, 50); if (vecs[1].isEmpty()) throw new Exception("Wrong columnname or Empty Layout"); window.updateResult(vecs[0], vecs[1]);