How do I detect that a JComboBox is empty? Is it something like:
combobox.isEmpty()
What's wrong with JComboBox.getItemCount()
? If this method returns 0
, the component is empty.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With