void () { setSelectionBackground(UIUtil.getListSelectionBackground(true)); setSelectionForeground(NamedColorUtil.getListSelectionForeground(true)); installDefaultCopyAction(); myEmptyText = new StatusText(this) { @Override protected boolean isStatusVisible() { return JBList.this.isEmpty(); } }; putClientProperty(UIUtil.NOT_IN_HIERARCHY_COMPONENTS, myEmptyText.getWrappedFragmentsIterable()); myExpandableItemsHandler = createExpandableItemsHandler(); setCellRenderer(new DefaultListCellRenderer()); }