AccessibleContext () { if (accessibleContext == null) { accessibleContext = new AccessibleContextDelegateWithContextMenu(new AccessibleColoredTreeCellRenderer()) { @Override protected void doShowContextMenu() { ActionManager.getInstance().tryToExecute(ActionManager.getInstance().getAction("ShowPopupMenu"), null, null, null, true); } @Override protected Container getDelegateParent() { return getParent(); } @Override public String getAccessibleName() { String name = super.getAccessibleName(); if (myAccessibleStatusText != null && !myAccessibleStatusText.isEmpty()) { if (name == null) name = myAccessibleStatusText; else { if (!name.endsWith(",")) name += ","; name += " " + myAccessibleStatusText + "."; } } return name; } }; } return accessibleContext; }