private void initPopupMenu(){
        popupMenu = 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 (dataBase.deleteFile(selectedRow) != null){
                    tableModel.removeRow(selectedRow);
                }


            }
        });
        ImageIcon itemAddNewIcon = new ImageIcon(Main.ICO_PATH + "table_row_insert.png");
        JMenuItem itemAddNew = new JMenuItem("  New     ", itemAddNewIcon);
        itemAddNew.addMouseListener(new MouseAdapter() {
            @Override
            public void mouseReleased(MouseEvent e) {
                FrameNewFile newFile = new FrameNewFile();
                newFile.setVisible(true);

            }
        });
        popupMenu.add(itemAddNew);
        popupMenu.addSeparator();
        popupMenu.add(itemDelete);
    }