private void btninsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btninsertActionPerformed
        
        if(txtname.getText() == "" && txtlname.getText() =="" && txtemail.getText() =="" && txtdepartment.getText() =="" && txttitle.getText() =="")
        {
            firstName=txtname.getText();
            lastName=txtlname.getText();
            eMail=txtemail.getText();
            department=txtdepartment.getText();
            title=txttitle.getText();
        }else{
            JOptionPane.showConfirmDialog(null, "UYARI");
        }
        try {
            String sql ="INSERT INTO Employee (FIRSTNAME, LASTNAME, EMAIL, DEPARTMENT, TITLE) VALUES('"+firstName+"', '"+lastName+"','"+eMail+"','"+department+"','"+title+"')";
            String connectionString = "jdbc:hsqldb:file:db/employeedb";

            dbh = new DBHandler(connectionString);
            dbh.executeQuery(sql);
            dbh.printResultSet();
            System.out.println("eklendi.");
        } catch (SQLException e) {
            System.out.println(e.getMessage());
        }
    }//GEN-LAST:event_btninsertActionPerformed