public void removeRow(int rowToBeDeleted){
        try {
            Statement st = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
            ResultSet rs=st.executeQuery("SELECT * FROM APP.MATRICES");
            rs.absolute(rowToBeDeleted);
            rs.deleteRow();
            st.close();
        } catch (SQLException ex) {
            System.out.println("Chyba mazání");
            ex.printStackTrace();
        }
    }