|
"Olivier " <sumit.iitkgp@gmail.com> wrote in message
> I understand the behaviour predefined in the matlab. But in my gui I have an 'edit text' box and wants that when user clicks on the text box another uesr interface opens up to provide the user with the choices to enter in the edit box and at the same time user can also enter the data of her/his own wish which might not be mentioned in the list.
Instead of using an edit-box, use an editable drop-down (aka popup-menu or combo-box) control:
jcb = javax.swing.JComboBox({'Red','Green','Blue'});
jcb.setEditable(1);
[hjcb,hContainer] = javacomponent(jcb,[200,200,100,20],gcf);
Yair Altman
http://UndocumentedMatlab.com
|