removeAllItems « JComboBox « Java Swing Q&A





1. Why does JComboBox.removeAllItems() throw NullPointerException?    stackoverflow.com

jComboBox.removeAllItems does not complain until after items are added (it gets called once before the JComboBox is populated from a configuration file). Stepping through this code I see jComboBox.removeAllItems calls JComboBox.removeAllItems ...