From: Ramiro Massol on
hi
I created a jcombobox in the figure toolbar. I need to be able to delete it beforing save the current status of the figure (using hgsave). Does anybody know how to do so?
My example code is below:

figure
hToolbar = findall(gcf,'type','uitoolbar');
jtb = get(get(hToolbar,'JavaContainer'),'ComponentPeer');
jtb(1).addSeparator;
jcb = javax.swing.JComboBox({'test'});

any help will be greatly appreciated

ramiro


BTW, nobody answered about my previous post about how to prevent calling twice a callback of jcombobox.