예제 #1
0
 public void mouseExited(MouseEvent e) {
   // Remove overlay only if the dialog isn't visible
   if (!popupMenu.isVisible()) {
     this.drawOverlay = false;
     this.repaint();
   }
 }
예제 #2
0
 public void mouseReleased(MouseEvent e) {
   showDialog(e, !popupMenu.isVisible());
 }