public void stateChanged(ChangeEvent e) { for (int i = 0; i < patternButtonArray.length; i++) { patternButtonArray[i].setPatternForeground(foregroundColorPane.getSelectObject()); patternButtonArray[i].setPatternBackground(backgroundColorPane.getSelectObject()); } PatternBackgroundQuickPane.this.repaint(); // repaint }
public Background updateBean() { return new PatternBackground( patternIndex, foregroundColorPane.getSelectObject(), backgroundColorPane.getSelectObject()); }