title: JPopupMenu Menu Not Appearing
body: <p>This is the code for my JPopupMenu and how I added it, it is supposed to respond when I right click the table:</p>
  
  <pre><code>    JMenuItem deleteRows = new JMenuItem("Delete Row");
      popup.add(deleteRows);
  
      personTable.addMouseListener(new MouseAdapter() {
  
          @Override
          public void mousePressed(MouseEvent e) {
              if(e.getButton() == MouseEvent.BUTTON3) {
                  popup.show(personTable, e.getX(), e.getY());
              }
          }
  
      });
  </code></pre>
  
  <p>I am not sure why the popup menu is not appearing when I right-click the table in the application. I would appreciate it if somebody told me what I am doing wrong.</p>