Diff for /FM2SQL/src/FM2SQL.java between versions 1.1 and 1.4

version 1.1, 2005/01/21 11:27:03 version 1.4, 2005/03/18 13:31:09
Line 416  public class FM2SQL extends JFrame imple Line 416  public class FM2SQL extends JFrame imple
         {          {
             System.setErr(System.out);              System.setErr(System.out);
             //         Properties prop = System.getProperties();              //         Properties prop = System.getProperties();
             // Enumeration enum= prop.keys();  //          Enumeration enume = prop.keys();
             //  while(enum.hasMoreElements())  //          Enumeration enum2 = prop.elements();
             //System.out.println(enum.nextElement());  //
   //          while (enume.hasMoreElements())
   //              System.out.println(enume.nextElement() + " " + enum2.nextElement());
   //
             if (System.getProperty("os.name").startsWith("W"))              if (System.getProperty("os.name").startsWith("W"))
                 // javax.swing.UIManager.setLookAndFeel(                  javax.swing.UIManager.setLookAndFeel(new com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
                 //    new com.sun.java.swing.plaf.windows.WindowsLookAndFeel());  
                 javax.swing.UIManager.put("Table.focusCellHighlightBorder", new javax.swing.border.LineBorder(java.awt.Color.black));                  javax.swing.UIManager.put("Table.focusCellHighlightBorder", new javax.swing.border.LineBorder(java.awt.Color.black));
             javax.swing.UIManager.put("Table.focusCellBackground", new java.awt.Color(227, 227, 227, 127));              javax.swing.UIManager.put("Table.focusCellBackground", new java.awt.Color(227, 227, 227, 127));
   
             fmInstance = new FM2SQL();              fmInstance = new FM2SQL();
             fmInstance.table.tableModel.addTableModelListener(fmInstance);              fmInstance.table.tableModel.addTableModelListener(fmInstance);
             fmInstance.setVisible(true);              fmInstance.setVisible(true);
             /*  
              * if (!new File("./html").exists()) new File("./html").mkdirs(); logFile =  
              * new FileWriter("./html/index.html"); openLog();  
              */  
         }          }
         catch (Exception e)          catch (Exception e)
         {          {
Line 456  public class FM2SQL extends JFrame imple Line 454  public class FM2SQL extends JFrame imple
                     System.exit(0);                      System.exit(0);
                 }                  }
             });              });
             dialog.show();              dialog.setVisible(true);
         }          }
     }      }
     public void actionPerformed(ActionEvent e)      public void actionPerformed(ActionEvent e)
Line 1069  public class FM2SQL extends JFrame imple Line 1067  public class FM2SQL extends JFrame imple
         {          {
             fmInstance.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));              fmInstance.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
             fmInstance.setEnabled(false);              fmInstance.setEnabled(false);
             Vector databases = Convert.getXMLConfig(file);              StringBuffer sb=Convert.readXMLFile(file);
               Vector databases = Convert.getXMLConfig(sb);
             Convert.DataBase destBase = (Convert.DataBase) databases.lastElement();              Convert.DataBase destBase = (Convert.DataBase) databases.lastElement();
             //destBase.bean.getConnection();              //destBase.bean.getConnection();
             noUserUpdate = true;              noUserUpdate = true;
Line 1226  public class FM2SQL extends JFrame imple Line 1225  public class FM2SQL extends JFrame imple
         dialog.setLocation(FM2SQL.fmInstance.getLocationOnScreen().x + (FM2SQL.fmInstance.getWidth() - 500) / 2, FM2SQL.fmInstance.getLocationOnScreen().y + (FM2SQL.fmInstance.getHeight() - 250) / 2);          dialog.setLocation(FM2SQL.fmInstance.getLocationOnScreen().x + (FM2SQL.fmInstance.getWidth() - 500) / 2, FM2SQL.fmInstance.getLocationOnScreen().y + (FM2SQL.fmInstance.getHeight() - 250) / 2);
         dialog.setSize(500, 250);          dialog.setSize(500, 250);
         if (!tables.isEmpty())          if (!tables.isEmpty())
             dialog.show();              dialog.setVisible(true);
         dialog.title.setText("Preparing tables to be diplayed");          dialog.title.setText("Preparing tables to be diplayed");
         for (int i = 0; i < tables.size(); ++i)          for (int i = 0; i < tables.size(); ++i)
         {          {
Line 1602  public class FM2SQL extends JFrame imple Line 1601  public class FM2SQL extends JFrame imple
         text.append(message);          text.append(message);
         dialog.setSize(600, 300);          dialog.setSize(600, 300);
         dialog.setLocationRelativeTo(fmInstance);          dialog.setLocationRelativeTo(fmInstance);
         dialog.show();          dialog.setVisible(true);
         //JOptionPane.showMessageDialog(null, message, title,          //JOptionPane.showMessageDialog(null, message, title,
         // JOptionPane.ERROR_MESSAGE);          // JOptionPane.ERROR_MESSAGE);
     }      }

Removed from v.1.1  
changed lines
  Added in v.1.4


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