Matice loadMatAtRow(int row){
        try{
            Statement st=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
            ResultSet rs = st.executeQuery("SELECT APP.MATRICES.NAZEV, APP.MATRICES.X, APP.MATRICES.Y, APP.MATRICES.MATRIX FROM APP.MATRICES");
            rs.absolute(row);
            int i,j;
            i=rs.getInt(2);
            j=rs.getInt(3);
            String str = rs.getString(4);
            Scanner s = new Scanner(new ByteArrayInputStream(str.getBytes("UTF-8")));
            Matice m = new Matice(j,i);
            for (int l = 0; l < j; l++) {
                while(!s.hasNextDouble()){
                    if(s.hasNext()){
                        s.next();
                    }
                }
                for (int k = 0; k < i; k++) {
                    m.nastavHodnotu(k,l,s.nextDouble());
                }
            }
            st.close();
            return m;
        }catch(SQLException | UnsupportedEncodingException e){
            JOptionPane.showMessageDialog(null, "Záznam má nesprávný formát, nebo je poškozen!", "Chyba vstupních dat", JOptionPane.WARNING_MESSAGE);
        }
        return null;
    }