+ public void mouseClicked(MouseEvent e) {
+ for (Component component : getComponents()) {
+ component.setBackground(UIManager.getColor("Panel.background"));
+ }
+ for (ComponentSelectionListener componentSelectionListener : componentSelectionListeners.getListeners(ComponentSelectionListener.class)) {
+ componentPanel.setBackground(Color.LIGHT_GRAY);
+ componentSelectionListener.componentSelected(controlledComponent);
+ }
+ selectedComponent = componentPanel;
+ }
+
+ @Override