7980818283848586878889
jCheckBoxTray.setSelected(false); } } private void salvar() { drive = new DriverConexao( jTextFieldDriver.getText(), jTextFieldServer.getText(), jTextFieldSchema.getText(), jTextFieldUserName.getText(), new String(jTextFieldPassword.getPassword()));
8485868788899091929394
driverDataBase = (String) driverConfig.getConfiguration(xmlDriverDataBase); driverUserName = (String) driverConfig.getConfiguration(xmlDriverUserName); driverPassword = (String) driverConfig.getConfiguration(xmlDriverPassword); // org.gjt.mm.mysql.Driver;localhost;Desafio;jdbc:mysql://localhost/Desafio;root;root; driver = new DriverConexao( driverName, driverServerName, driverDataBase, driverUserName, driverPassword);
106107108109110111112113114115116
driverConfig.addConfiguration(xmlDriverUserName, newDrive.getUserName()); driverConfig.addConfiguration(xmlDriverPassword, newDrive.getPassword()); } public static void main(String args[]){ DriverConexao newDrive = new DriverConexao( "org.gjt.mm.mysql.Driver", "localhost", "etadg", "root", "root");