khammond    01/10/16 06:31:47

  Modified:    src/org/apache/jmeter/protocol/jdbc/config/gui
                        DbConfigGui.java
  Log:
  Code from Amith Varghese:
  
  Here are my changes to the JDBC input box.  I basically changed the
  Database URL label to JDBC URL and I removed the Sub Protocol box from the GUI
  and code.
  
  Revision  Changes    Path
  1.6       +0 -23     
jakarta-jmeter/src/org/apache/jmeter/protocol/jdbc/config/gui/DbConfigGui.java
  
  Index: DbConfigGui.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/org/apache/jmeter/protocol/jdbc/config/gui/DbConfigGui.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DbConfigGui.java  2001/10/02 14:16:22     1.5
  +++ DbConfigGui.java  2001/10/16 13:31:47     1.6
  @@ -84,7 +84,6 @@
        private NamePanel namePanel;
        private LoginConfigGui loginGui;
        private JTextField urlField = new JTextField(20);
  -     private JTextField subProtocolField = new JTextField(20);
        private JTextField driverField = new JTextField(20);
   
        public DbConfigGui()
  @@ -107,7 +106,6 @@
        {
                driverField.setText(model.getDriver());
                urlField.setText(model.getUrl());
  -             subProtocolField.setText(model.getSubProtocol());
        }
   
        private void init()
  @@ -142,9 +140,6 @@
                        // URL
                        urlJDBCPanel.add(getUrlPanel());
   
  -                     // SUBPROTOCOL
  -                     urlJDBCPanel.add(getSubProtocolPanel());
  -
                        // DRIVER
                        urlJDBCPanel.add(getDriverPanel());
   
  @@ -172,9 +167,6 @@
                        // URL
                        urlJDBCPanel.add(getUrlPanel());
   
  -                     // SUBPROTOCOL
  -                     urlJDBCPanel.add(getSubProtocolPanel());
  -
                        // DRIVER
                        urlJDBCPanel.add(getDriverPanel());
   
  @@ -201,17 +193,6 @@
                return panel;
        }
   
  -     private JPanel getSubProtocolPanel()
  -     {
  -             JPanel panel = new JPanel();
  -             panel.add(new 
JLabel(JMeterUtils.getResString("database_sub_protocol")));
  -             subProtocolField.setText(model.getSubProtocol());
  -             subProtocolField.setName(PROTOCOL);
  -             subProtocolField.addKeyListener(this);
  -             panel.add(subProtocolField);
  -             return panel;
  -     }
  -
        private JPanel getUrlPanel()
        {
                JPanel panel = new JPanel();
  @@ -241,10 +222,6 @@
                else if(name.equals(URL))
                {
                        model.setUrl(urlField.getText());
  -             }
  -             else if(name.equals(PROTOCOL))
  -             {
  -                     model.setSubProtocol(subProtocolField.getText());
                }
        }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to