public MatrixEntering(Matice m) {
        this.m=m;
        this.col = this.m.GetPole()[0].length;
        this.row = this.m.GetPole().length;
        //this.setBounds(100, 100, 50+(60*col), 150+30*row);
        Container kon = getContentPane();
 //       kon.setSize(50+col*70, 150+30*row);
        this.setBounds(100, 100, 150+(40*col), 150+30*row);
        kon.setLayout(new BorderLayout());
        //      kon.add(new JFrame(),srb.CENTER);
        //  Container con=getContentPane();
        //    GridLayout mid = new GridLayout(row,col);
        top.add(new JLabel("Zadej matici"));
        mid.setLayout(new GridLayout(row, col));
        pole = new JTextField[row * col];
        for (int i = 0; i < row ; i++) {
            for (int j = 0; j < col; j++) {
                pole[i*col+j] = new JTextField(String.format("%.3f",m.GetPole()[i][j]));
                mid.add(pole[i*col+j]);
            }
        }
        
        JButton vytvor = new JButton("Vytvoř");
        vytvor.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                vytvor(evt);
            }
        });
        
        JButton rand = new JButton("Náhodně");
        rand.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                random(evt);
            }
        });
        bot.setLayout(new java.awt.FlowLayout());
        bot.add(vytvor);
        bot.add(rand);
        kon.add(top, BorderLayout.NORTH);
        kon.add(mid, BorderLayout.CENTER);
        kon.add(bot, BorderLayout.SOUTH);
    }