private void initTable(){
        TableCellEditor nonSelEditor = new TableCellEditor() {
            @Override
            public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
                return null;
            }
            @Override
            public Object getCellEditorValue() {return null;}
            @Override
            public boolean isCellEditable(EventObject anEvent) {return false;}
            @Override
            public boolean shouldSelectCell(EventObject anEvent) {return false;}
            @Override
            public boolean stopCellEditing() {return false;}
            @Override
            public void cancelCellEditing() {}
            @Override
            public void addCellEditorListener(CellEditorListener l) {}
            @Override
            public void removeCellEditorListener(CellEditorListener l) {}
        };

        modelMainTable = new DefaultTableModel();

        String[] columnsMainTable = {"Algorithm","Name","File name","Points","Array"};
        for(String column : columnsMainTable){
            modelMainTable.addColumn(column);
        }

        mainTable = new JTable(modelMainTable);

        mainTable.setRowHeight(20);
        mainTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

        mainTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        mainTable.getColumnModel().getColumn(0).setPreferredWidth(getWidth() / 10);
        mainTable.getColumnModel().getColumn(1).setPreferredWidth(getWidth() / 5);
        mainTable.getColumnModel().getColumn(2).setPreferredWidth(getWidth() / 5);
        mainTable.getColumnModel().getColumn(3).setPreferredWidth(getWidth() / 20);
        mainTable.getColumnModel().getColumn(4).setPreferredWidth(getWidth() / 5);

        mainTable.getColumnModel().getColumn(0).setCellEditor(nonSelEditor);
        mainTable.getColumnModel().getColumn(1).setCellEditor(nonSelEditor);
        mainTable.getColumnModel().getColumn(2).setCellEditor(nonSelEditor);

        setUpArraysColumn(mainTable.getColumnModel().getColumn(4));   //Insert a comboBox into forth table column

        mainTable.addMouseListener(new PopupMenu(mainPopupMenu){
            @Override
            public void maybeShowPopup(MouseEvent e) {
                if (e.isPopupTrigger()) {
                    mainPopupMenu.show(e.getComponent(),
                            e.getX(), e.getY());
                }
                if (e.getButton() == MouseEvent.BUTTON3) {
                    Point point = e.getPoint();
                    int column = mainTable.columnAtPoint(point);
                    int row = mainTable.rowAtPoint(point);
                    mainTable.setColumnSelectionInterval(column, column);
                    mainTable.setRowSelectionInterval(row, row);
                    selectedRow = mainTable.getSelectedRow();
                }

            }
        });

        JScrollPane scrollMainTable = new JScrollPane(mainTable);
        upperSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, scrollTreeView, scrollMainTable);

        modelResultTable = new DefaultTableModel();
        String[] columnsChoiceTable = {"Name","Time, c","Memory, kB","Max_value","Number points", "Type"};

        for(String column : columnsChoiceTable){
            modelResultTable.addColumn(column);
        }

        resultTable = new JTable(modelResultTable);
        resultTable.setRowHeight(20);

        resultTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
        for (int i = 0; i<resultTable.getColumnCount(); i++)
            resultTable.getColumnModel().getColumn(i).setCellEditor(nonSelEditor);

        resultTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        resultTable.getColumnModel().getColumn(0).setPreferredWidth(getWidth() / 3);
        resultTable.getColumnModel().getColumn(1).setPreferredWidth(getWidth() / 10);
        resultTable.getColumnModel().getColumn(2).setPreferredWidth(getWidth() / 10);
        resultTable.getColumnModel().getColumn(3).setPreferredWidth(getWidth() / 8);
        resultTable.getColumnModel().getColumn(4).setPreferredWidth(getWidth() / 8);
        resultTable.getColumnModel().getColumn(5).setPreferredWidth(getWidth() / 5);

        resultTable.addMouseListener(new PopupMenu(resultPopupMenu){
            @Override
            public void maybeShowPopup(MouseEvent e) {
                if (e.isPopupTrigger()) {
                    resultPopupMenu.show(e.getComponent(),
                            e.getX(), e.getY());
                }
                if (e.getButton() == MouseEvent.BUTTON3) {
                    Point point = e.getPoint();
                    int column = resultTable.columnAtPoint(point);
                    int row = resultTable.rowAtPoint(point);
                    resultTable.setColumnSelectionInterval(column, column);
                    resultTable.setRowSelectionInterval(row, row);
                    selectedRow = resultTable.getSelectedRow();
                }
            }
        });

        JScrollPane scrollChoiceTable = new JScrollPane(resultTable);
        splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT,upperSplit,scrollChoiceTable);
        setSplitPaneBounds();

        add(splitPane, BorderLayout.CENTER);


    }