@Override public void setBackground(Color color) { super.setBackground(color); for (Component c : this.getComponents()) { if (c instanceof DataPanel) { c.setBackground(color); } } }