String () { // Concatenate the name of all accessible child components String name = StringUtil.join(getComponents(), c -> { if (c instanceof Accessible) { return c.getAccessibleContext().getAccessibleName(); } return null; }, " "); if (StringUtil.isEmpty(name)) { // Fallback to JPanel if we have no children name = getDefaultAccessibleContext().getAccessibleName(); } return name; }