Connection conn =null;
public static Connection ConnecrDb(){
try{
Class.forName("org:sqlite:JDBC");
Connection conn= DriverManager.getConnection("jdbc:sqlite:C:\\Users\\sohaib\\Documents\\NetBeansProjects\\DatabaseRecordManager\\DatabaseRecordManager.sqlite");
JOptionPane.showMessageDialog(null,"Grattis: You are connented with Database");
return conn;
}
catch(Exception e){
JOptionPane.showMessageDialog(null, e);
return null;
}