Update SQLiteConnection.java

This commit is contained in:
s441433 2019-01-08 22:18:02 +01:00
parent 35001eb4b0
commit 7d2457a0ff

View File

@ -10,8 +10,8 @@ public class SQLiteConnection
public static Connection dbConnector() { public static Connection dbConnector() {
try { try {
Class.forName("org.sqlite.JDBC"); Class.forName("org.sqlite.JDBC");
Connection conn=DriverManager.getConnection("jdbc:sqlite:stolowkaZPM.db"); Connection conn=DriverManager.getConnection("jdbc:sqlite:C:\\myGO\\stolowkaZPM.db");
JOptionPane.showMessageDialog(null, "połączono !!!!"); //JOptionPane.showMessageDialog(null, "połączono !!!!");
return conn; return conn;
} catch (Exception e) { } catch (Exception e) {
JOptionPane.showMessageDialog(null, "nie"); JOptionPane.showMessageDialog(null, "nie");