void (Color bg) { super.setBackground(bg); JScrollPane scrollPane = UIUtil.findComponentOfType(this, JScrollPane.class); if (scrollPane != null) { scrollPane.setBackground(bg); } ListWithFilter panel = UIUtil.findComponentOfType(this, ListWithFilter.class); if (panel != null) { panel.setBackground(bg); } if (myList != null) { myList.setBackground(bg); } }