AccessibleContext () { if (accessibleContext == null) { accessibleContext = new AccessibleContextDelegateWithContextMenu(super.getAccessibleContext()) { @Override protected Container getDelegateParent() { return getParent(); } @Override protected void doShowContextMenu() { ActionManager.getInstance().tryToExecute(ActionManager.getInstance().getAction("ShowPopupMenu"), null, null, null, true); } @Override public String getAccessibleName() { return AccessibleContextUtil.combineAccessibleStrings( myTextRenderer.getAccessibleContext().getAccessibleName(), UIBundle.message(myCheckbox.isSelected() ? "checkbox.tree.accessible.name.checked" : "checkbox.tree.accessible.name.not.checked")); } }; } return accessibleContext; }