Resourses resources = new Resourses();
Font font = resources.getDefaultFont();
// 'Send' button.
JButton sendButton = new JButton("Send");
sendButton.setActionCommand(sendButton.getText());
SendController sendController = new SendController();
sendController.setPanels(new FileListPanel[]{leftPanel, rightPanel});
sendButton.addActionListener(sendController);
sendButton.setFont(font);
this.add(sendButton);
// 'Create file' button.
JButton createFileButton = new JButton("Create file");