title: java.sql.SQLException:Database Locked
body: <p>I'm having problem "java.sql.SQLException:Database Locked" with this. I did a login screen to my program, after that it's opening a jFrame which I designed. And I made a little button which is working for saving datas in jtextfields into database and showing them to jtable which is right next to the textfield. But after filling jtextfields, when I click to this button, it's giving me "java.sql.SQLException:Database Locked" error. I'm waiting for your help.</p>
  
  <p>PS: If you need login screen's or anything else,just leave a comment or answer, I can edit this question.</p>
  
  <pre><code>private void cmd_saveActionPerformed(java.awt.event.ActionEvent evt) {                                         
  
        try{          
            String sql="Insert into maintable(\"Ad-Soyad\",Yaş,Konum,\"E-Posta\",\"Katılım Tarihi\") values (?,?,?,?,?)";
  
            pst=conn.prepareStatement(sql);
  
            pst.setString(1, jTextField1.getText());
            pst.setString(2, jTextField2.getText());
            pst.setString(3, jTextField3.getText());
            pst.setString(4, jTextField4.getText());
            pst.setString(5, jTextField5.getText());          
  
            pst.execute();
            JOptionPane.showMessageDialog(null, "Kaydedildi !"); 
  
            } catch(Exception e) {          
                  JOptionPane.showMessageDialog(null,e);
              }             
            }  
  </code></pre>
  
  <p>EDIT: Now after clicking button, it's coming up "Kaydedildi" message which is successful in English. But it's showing me an another error.</p>
  
  <pre><code>private void Table_EmployeeMouseClicked(java.awt.event.MouseEvent evt) {                                            
  // TODO add your handling code here:
  
          try{
           int row =Table_Employee.getSelectedRow();
           String Table_click=(Table_Employee.getModel().getValueAt(row, 0).toString());
           String sql ="select * from maintable where İsim ='"+Table_click+"' ";
           pst=conn.prepareStatement(sql);
           rs=pst.executeQuery();
           if(rs.next()){
  
           String add1 =rs.getString("İsim");
           jTextField1.setText((rs.getString("İsim")).trim());
  
           String add2 =rs.getString("Yaş");
           jTextField2.setText((rs.getString("Yaş")).trim());
  
           String add3 =rs.getString("Konum");
           jTextField3.setText((rs.getString("Konum")).trim());
  
           String add4 =rs.getString("EPosta");
           jTextField4.setText((rs.getString("EPosta")).trim());
  
           String add5 =rs.getString("KatılımTarihi");
           jTextField5.setText((rs.getString("KatılımTarihi")).trim());
  
  
  
  
           }         
  
  
          }catch(Exception e){
          JOptionPane.showMessageDialog(null, e);
  
  
  
          }
  
  
  
  
  
  
      }          
  </code></pre>