private void initPopupMenu(){

        mainPopupMenu = new JPopupMenu();
        ImageIcon itemDeleteIcon = new ImageIcon(Main.ICO_PATH + "table_row_delete.png");
        JMenuItem itemDelete = new JMenuItem("  Delete    ", itemDeleteIcon);
        itemDelete.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {

//                if (Main.getStructureBase().deleteData(selectedRow) != null){
                    modelMainTable.removeRow(selectedRow);
//                }
            }
        });
        resultPopupMenu = new JPopupMenu();
        JMenuItem itemDeleteResult = new JMenuItem("  Delete    ", itemDeleteIcon);
        itemDeleteResult.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {

                if (listDataOut.deleteData(selectedRow) != null){
                    modelResultTable.removeRow(selectedRow);
                }
            }
        });

        mainPopupMenu.add(itemDelete);
        resultPopupMenu.add(itemDeleteResult);
    }