Aleksandr Kravets wrote:

Hello,
I have a custom JComboBox class where I set a ToolTip for each item. It
works in times when I send a populated vector to the class. However,
sometimes I need to send an empty vector and populate it later. How can I
find out in custom JCB class when my vector has changed in number of
elements?

You should wrap a ComboBoxModel around your Vector
or subclass DefaultComboBoxModel. As ComboBoxModel
is a ListModel, it informs about changes. So if
you populate your Vector later, you have to fire
(at least) intervalAdded() notifications.

--
Christian Pesch - Product Maturity Manager
CoreMedia AG - http://www.coremedia.com - 0700-COREMEDIA



_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to