public void mouseClicked(MouseEvent e) {
        if (e.getButton() == MouseEvent.BUTTON3 && e.getClickCount() == 1) {
            Point position = e.getPoint();
            SwingUtilities.convertPointToScreen(position, canvas);
            canvas.showCellPopupMenu(SwingUtilities.convertPoint(modifyCell, position, canvas), modifyCell);
        }

        if (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {
            canvas.showModifyCellJTF(modifyCell);
        }
    }