getContentPane().add(JLabel1, new com.symantec.itools.awt.GridBagConstraintsD(0,0,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
JLabel1.setBounds(27,32,66,15);
user.setColumns(24);
getContentPane().add(user, new com.symantec.itools.awt.GridBagConstraintsD(1,0,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
user.setBounds(98,30,264,19);
JLabel2.setText("Password:");
JLabel2.setDisplayedMnemonic((int)'P');
JLabel2.setLabelFor(password);
getContentPane().add(JLabel2, new com.symantec.itools.awt.GridBagConstraintsD(0,1,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
JLabel2.setBounds(32,51,61,15);
password.setColumns(24);
getContentPane().add(password, new com.symantec.itools.awt.GridBagConstraintsD(1,1,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
password.setBounds(98,49,264,19);
JLabel3.setText("Database URL:");
JLabel3.setDisplayedMnemonic((int)'D');
JLabel3.setLabelFor(url);
getContentPane().add(JLabel3, new com.symantec.itools.awt.GridBagConstraintsD(0,2,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
JLabel3.setBounds(10,70,83,15);
url.setColumns(24);
getContentPane().add(url, new com.symantec.itools.awt.GridBagConstraintsD(1,2,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
url.setBounds(98,68,264,19);
JLabel4.setText("Driver Class:");
JLabel4.setDisplayedMnemonic((int)'R');
JLabel4.setLabelFor(driver);
getContentPane().add(JLabel4, new com.symantec.itools.awt.GridBagConstraintsD(0,3,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
JLabel4.setBounds(21,89,72,15);
driver.setColumns(24);
getContentPane().add(driver, new com.symantec.itools.awt.GridBagConstraintsD(1,3,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
driver.setBounds(98,87,264,19);
JLabel5.setText("Query:");
JLabel5.setDisplayedMnemonic((int)'Q');
JLabel5.setLabelFor(query);
getContentPane().add(JLabel5, new com.symantec.itools.awt.GridBagConstraintsD(0,4,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
JLabel5.setBounds(56,108,37,15);
query.setColumns(24);
getContentPane().add(query, new com.symantec.itools.awt.GridBagConstraintsD(1,4,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
query.setBounds(98,106,264,19);
connect.setText("Connect");
connect.setMnemonic((int)'C');
getContentPane().add(connect, new com.symantec.itools.awt.GridBagConstraintsD(0,5,2,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(5,0,0,0),0,0));
connect.setBounds(145,130,81,25);
//}}
//{{REGISTER_LISTENERS
SymAction lSymAction = new SymAction();
connect.addActionListener(lSymAction);
//}}
}
public void setUser(String name)
{
user.setText(name);
}
public String getUser()
{
return user.getText();
}
public void setPassword(String pass)
{
password.setText(pass);
}
public String getPassword()
{
return password.getText();
}
public void setURL(String theURL)
{
url.setText(theURL);
}
public String getURL()
{
return url.getText();
}
public void setDriver(String theDriver)
{
driver.setText(theDriver);
}
public String getDriver()
{
return driver.getText();
}
public void setQuery(String theQuery)
{
query.setText(theQuery);
}
public String getQuery()
{
return query.getText();
}
boolean wasCanceled=true;
public boolean wasCanceled()
{
return wasCanceled;
}
//{{DECLARE_CONTROLS
com.sun.java.swing.JLabel JLabel1 = new com.sun.java.swing.JLabel();
com.sun.java.swing.JTextField user = new com.sun.java.swing.JTextField();
com.sun.java.swing.JLabel JLabel2 = new com.sun.java.swing.JLabel();
com.sun.java.swing.JPasswordField password = new com.sun.java.swing.JPasswordField();
com.sun.java.swing.JLabel JLabel3 = new com.sun.java.swing.JLabel();
com.sun.java.swing.JTextField url = new com.sun.java.swing.JTextField();
com.sun.java.swing.JLabel JLabel4 = new com.sun.java.swing.JLabel();
com.sun.java.swing.JTextField driver = new com.sun.java.swing.JTextField();
com.sun.java.swing.JLabel JLabel5 = new com.sun.java.swing.JLabel();
com.sun.java.swing.JTextField query = new com.sun.java.swing.JTextField();
com.sun.java.swing.JButton connect = new com.sun.java.swing.JButton();
//}}
class SymAction implements java.awt.event.ActionListener
{
public void actionPerformed(java.awt.event.ActionEvent event)