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

version 1.1, 2005/01/21 11:27:03 version 1.2, 2005/02/07 13:01:58
Line 34  import java.sql.SQLException; Line 34  import java.sql.SQLException;
 import java.sql.Statement;  import java.sql.Statement;
 import java.text.ParseException;  import java.text.ParseException;
 import java.util.Collections;  import java.util.Collections;
   import java.util.Enumeration;
 import java.util.Iterator;  import java.util.Iterator;
   import java.util.Properties;
 import java.util.Vector;  import java.util.Vector;
   
 import javax.swing.Box;  import javax.swing.Box;
Line 416  public class FM2SQL extends JFrame imple Line 418  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 456  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 1226  public class FM2SQL extends JFrame imple Line 1226  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 1602  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.2


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