private JPanel placeButtons(){
        JPanel panel = new JPanel(new BorderLayout());

        buttonOK = new JButton("Ok");
        buttonCancel = new JButton("Cancel");
        buttonEditFile = new JButton("Edit file");

        JPanel rightPanel = new JPanel(new FlowLayout());
        JPanel leftPanel = new JPanel(new FlowLayout());

        rightPanel.add(buttonOK);
        rightPanel.add(buttonCancel);

        leftPanel.add(buttonEditFile);
        panel.add(rightPanel, BorderLayout.EAST);
        panel.add(leftPanel, BorderLayout.WEST);

        return panel;
    }