void vytvor(ActionEvent e) {
        try {
            String s;
            m = new Matice(row, col);
            for (int j = 0; j < col; j++) {
                for (int k = 0; k < row; k++) {
                    s=pole[(k*col)+j].getText();
                    s=s.replace(',', '.');
                    m.nastavHodnotu(j, k, Double.parseDouble(s));
                }
            }
            this.dispose();
            //i=Double.parseDouble(pole[1].getText());
        } catch (NumberFormatException ex) {
                //System.out.println("chyba:\n" + ex));
                JOptionPane.showMessageDialog(this, "Musí být zadaná čísla!", "Chyba vstupních dat", JOptionPane.WARNING_MESSAGE);
        }
        
    }