void (ActionEvent e) { CopyPasteManager.getInstance().setContents(new StringSelection(path)); Balloon balloon = JBPopupFactory.getInstance().getParentBalloonFor(p); if (balloon != null) { balloon.hide(true); } }