null,
dbaseURL);*/
DatabaseConnectionDialog dbd= new DatabaseConnectionDialog(null,dbaseURL,username);
dbd.setVisible(true);
//if (dbaseURL == null) {
if (dbd.getReturnValue()==JOptionPane.CLOSED_OPTION) {
m_FromLab.setText(Messages.getInstance().getString("ResultsPanel_SetInstancesFromDBaseQuery_FromLab_Text_First"));
return;
}
dbaseURL=dbd.getURL();
username=dbd.getUsername();
passwd=dbd.getPassword();
m_InstanceQuery.setDatabaseURL(dbaseURL);
m_InstanceQuery.setUsername(username);
m_InstanceQuery.setPassword(passwd);
m_InstanceQuery.setDebug(dbd.getDebug());
m_InstanceQuery.connectToDatabase();
if (!m_InstanceQuery.experimentIndexExists()) {
System.err.println(Messages.getInstance().getString("ResultsPanel_SetInstancesFromDBaseQuery_Error_Text_First"));
m_FromLab.setText(Messages.getInstance().getString("ResultsPanel_SetInstancesFromDBaseQuery_FromLab_Text_Second"));