refeito setupMysql.bat
This commit is contained in:
@@ -52,6 +52,7 @@ public class ConexaoBanco {
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(FormOptions.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
|
||||
|
||||
String contentUser;
|
||||
contentUser = new String(Files.readAllBytes(Paths.get(dbuserpPath)));
|
||||
@@ -62,9 +63,11 @@ public class ConexaoBanco {
|
||||
String url = "jdbc:mysql://" + contentIP + ":3306/applibrography"; //Nome da base de dados
|
||||
String user = contentUser; //nome do usuário do MySQL
|
||||
String password = contentPass; //senha do MySQL
|
||||
//System.out.println(url + user + password);
|
||||
|
||||
Connection conexao = null;
|
||||
conexao = (Connection) DriverManager.getConnection(url, user, password);
|
||||
|
||||
|
||||
return conexao;
|
||||
|
||||
|
||||
@@ -157,9 +157,9 @@
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
<Component id="jScrollPane1" min="-2" pref="278" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="btnXlsxExport" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="jButton3" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="btnXlsxExport" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace pref="42" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
|
||||
@@ -287,9 +287,9 @@ public class FormLivros extends javax.swing.JFrame {
|
||||
.addGap(18, 18, 18)
|
||||
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 278, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(tabConsultaUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(btnXlsxExport)
|
||||
.addComponent(jButton3))
|
||||
.addGroup(tabConsultaUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(jButton3)
|
||||
.addComponent(btnXlsxExport))
|
||||
.addContainerGap(42, Short.MAX_VALUE))
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user