in src/org/pushingpixels/lightbeam/componentsFactory/JBComponentsFactory.java [187:199]
public JComboBox createComboBox(Object[] items) {
JComboBox component = null;
try {
Class<?> jbClass = Class.forName("com.intellij.openapi.ui.ComboBoxWithWidePopup");
Constructor<?> constructor = jbClass.getConstructor();
component = (JComboBox) constructor.newInstance();
component.setModel(new DefaultComboBoxModel(items));
} catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException |
InstantiationException | InvocationTargetException e) {
e.printStackTrace();
}
return component;
}