Diff for /FM2SQL/Attic/FM2SQL.java between versions 1.3 and 1.7

version 1.3, 2003/12/11 11:36:55 version 1.7, 2004/01/08 10:33:33
Line 6  import Convert.DataBase; Line 6  import Convert.DataBase;
   
 import java.awt.event.*;  import java.awt.event.*;
 import java.awt.Dimension;  import java.awt.Dimension;
 import java.awt.FlowLayout;  
 import java.awt.*;  import java.awt.*;
 import java.sql.*;  import java.sql.*;
 import java.util.*;  import java.util.*;
Line 20  import java.io.*; Line 19  import java.io.*;
  * <br>   * <br>
  * The Database access is made over DBBean class   * The Database access is made over DBBean class
  * all other classes are just for the visualization of the data   * all other classes are just for the visualization of the data
  *  @version 0.2( first stable release)   *  @version 0.3( first stable release)
  *  @author rogo   *  @author rogo
  *   *
  */   */
Line 135  public class FM2SQL extends JFrame imple Line 134  public class FM2SQL extends JFrame imple
     box4.setMaximumSize(new Dimension(550, 20));      box4.setMaximumSize(new Dimension(550, 20));
     box4.setPreferredSize(new Dimension(450, 20));      box4.setPreferredSize(new Dimension(450, 20));
     paneDest = new JScrollPane(tListDest);      paneDest = new JScrollPane(tListDest);
     tListDest.setPreferredSize(paneDest.getPreferredSize());     // tListDest.setPreferredSize(paneDest.getPreferredSize());
    // paneDest.setPreferredSize(new Dimension(350, 365));     // paneDest.setPreferredSize(new Dimension(350, 365));
     Dimension dim = paneDest.getPreferredSize();      Dimension dim = paneDest.getPreferredSize();
     paneDest.setMinimumSize(dim);      paneDest.setMinimumSize(dim);
Line 200  public class FM2SQL extends JFrame imple Line 199  public class FM2SQL extends JFrame imple
     gbc.gridheight = 1;      gbc.gridheight = 1;
     gbc.fill = GridBagConstraints.BOTH;      gbc.fill = GridBagConstraints.BOTH;
     listPanel.add(tC.tableScroller, gbc);      listPanel.add(tC.tableScroller, gbc);
     gbc.fill = GridBagConstraints.VERTICAL;     // gbc.fill = GridBagConstraints.VERTICAL;
     destPanel.add(paneDest, gbc);      destPanel.add(paneDest, gbc);
     showTables1 = new JButton("show Tables");      showTables1 = new JButton("show Tables");
     showTables1.setActionCommand("show Tables source");      showTables1.setActionCommand("show Tables source");
Line 214  public class FM2SQL extends JFrame imple Line 213  public class FM2SQL extends JFrame imple
    // topPanel.add(showTables1, gbc);     // topPanel.add(showTables1, gbc);
     JPanel buttonPanel = new JPanel();      JPanel buttonPanel = new JPanel();
     buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));      buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
     buttonPanel.setMinimumSize(new Dimension(350, 30));      buttonPanel.setMinimumSize(new Dimension(380, 30));
     convert = new JButton("Convert Tables");      convert = new JButton("Convert Tables");
     showTables = new JButton("show Tables");      showTables = new JButton("show Tables");
     dropTables = new JButton("drop Tables");      dropTables = new JButton("drop Tables");
Line 549  public class FM2SQL extends JFrame imple Line 548  public class FM2SQL extends JFrame imple
       }        }
     }      }
    //writing config     //writing config
     if (command.equals("export XML Config"))      if (command.equals("save XML Config"))
     {      {
       if (configExportFileChooser == null)        if (configExportFileChooser == null)
       {        {
Line 583  public class FM2SQL extends JFrame imple Line 582  public class FM2SQL extends JFrame imple
       configExportFileChooser.showDialog(fmInstance, " Save ");        configExportFileChooser.showDialog(fmInstance, " Save ");
         
     }      }
     if (command.equals("import XML Config"))      if (command.equals("open XML Config"))
     {      {
       if (configImportFileChooser == null)        if (configImportFileChooser == null)
       {        {
Line 681  public class FM2SQL extends JFrame imple Line 680  public class FM2SQL extends JFrame imple
       };        };
       thread.start();        thread.start();
     }      }
     if(command.equals("Quit"))
      {
        fmInstance.dispose();
        System.exit(0);
     
      }
      
   }    }
   /**    /**
    * Copys the content of source to destination and makes new table if necessary     * Copys the content of source to destination and makes new table if necessary
Line 1059  public class FM2SQL extends JFrame imple Line 1065  public class FM2SQL extends JFrame imple
   {    {
     JMenuBar menubar = new JMenuBar();      JMenuBar menubar = new JMenuBar();
     JMenu menu = new JMenu("File");      JMenu menu = new JMenu("File");
        menu.setMnemonic('F');
       JMenuItem item = new JMenuItem("open XML Config");
       item.setMnemonic('i');
       item.setAccelerator(KeyStroke.getKeyStroke('O',InputEvent.CTRL_DOWN_MASK));
         
     JMenuItem item = new JMenuItem("import XML Config");  
     item.addActionListener(fm);      item.addActionListener(fm);
     menu.add(item);      menu.add(item);
     item = new JMenuItem("export XML Config");      item = new JMenuItem("save XML Config");
       item.setAccelerator(KeyStroke.getKeyStroke('S',InputEvent.CTRL_DOWN_MASK));
       item.setMnemonic('x');
      
       item.addActionListener(fm);
       menu.add(item);
       item = new JMenuItem("Quit");
       item.setMnemonic('Q');
       item.setAccelerator(KeyStroke.getKeyStroke('Q',InputEvent.CTRL_DOWN_MASK));
     item.addActionListener(fm);      item.addActionListener(fm);
     menu.add(item);      menu.add(item);
    
     menubar.add(menu);      menubar.add(menu);
     menu = new JMenu("Options");      menu = new JMenu("Options");
       menu.setMnemonic('O');
       
     item = new JMenuItem("show Driver features");      item = new JMenuItem("show Driver features");
     item.addActionListener(fm);      item.addActionListener(fm);

Removed from v.1.3  
changed lines
  Added in v.1.7


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