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 (dataList.deleteData(selectedRow) != null){
                    tableModelArrays.removeRow(selectedRow);
                }
                if(tableModelArrays.getRowCount()!=0){
                    for(int i=0; i<tableModelArrays.getRowCount(); i++){
                        tableModelArrays.setValueAt(i+1,i,0);
                    }
                }
            }
        });
        popupMenu.add(itemDelete);
    }