private void updateBgImage() { Iterator iter = controls.iterator(); while (iter.hasNext()) { Control control = (Control) iter.next(); control.setBackgroundImage(showBgImage ? BG_PATTERN_IMAGE : null); } }