/** * Creates color combobox components for a given property. * * @param colorProperty The property to create the components for. * * @return A new color combobox. */ public static JComponent[] createColorComponents(Property colorProperty) { JComponent[] components = new JComponent[2]; components[0] = new JLabel(colorProperty.getDescriptor().getDisplayName() + ":"); components[1] = createColorCombobox(colorProperty); return components; }