Problem with Jcombobox

Hello to everybody!! I have an autocomplete field (using jcombobox). There's a a jdialog where I set a new item to the combobox. Could you tell me Why only when I call the jdialog again, the combobox is updated?!

this the part of my code:

//lista = new JComboBox();

//lista() = returns a vector;

lista.setModel(new DefaultComboBoxModel(lista()));

new AutoComplete(lista);

[537 byte] By [MrSmyllea] at [2007-11-27 7:57:11]
# 1
post a demo code here
dayanandabva at 2007-7-12 19:39:01 > top of Java-index,Desktop,Core GUI APIs...