boolean (final MouseEvent e) { int cell = getCellAt(e.getPoint()); if (cell >= 0 && e.isPopupTrigger()) { if (!mySelectionModel.isSelectedIndex(cell)) { mySelectionModel.setSelectionInterval(cell, cell); } ActionGroup group = mySelectedContainer.getGridLayoutManager().getCaptionActions(); if (group != null) { final ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu("GridCaptionPanel", group); popupMenu.getComponent().show(GridCaptionPanel.this, e.getX(), e.getY()); return true; } } return false; }