void () { myRendererComponent.add(mySeparatorComponent, BorderLayout.NORTH); JComponent centerComponent = new NonOpaquePanel(myComponent) { @Override public Dimension getPreferredSize() { return UIUtil.updateListRowHeight(super.getPreferredSize()); } }; myRendererComponent.add(centerComponent, BorderLayout.CENTER); }