Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » changing Combo items from another Combo
changing Combo items from another Combo [message #446544] Thu, 25 November 2004 16:55 Go to next message
Eclipse UserFriend
Originally posted by: thoraval.yvon.free.fr

I have to change the Combo items according to another Combo.

This works except the fact i see preeceding selecyed text allthought the
new items are correct...

A way to change that "annoying feature" ?

my code actually is :

Combo cw = (Combo) comboWhatAry.get(idx);
cw.clearSelection();
cw.removeAll();
cw.setItems(comboWhatItems[c.getSelectionIndex()]);

c being anothe Combo...
found was (Re: changing Combo items from another Combo) [message #446546 is a reply to message #446544] Thu, 25 November 2004 19:27 Go to previous message
Eclipse UserFriend
Originally posted by: thoraval.yvon.free.fr

Yvon Thoraval <thoraval.yvon@free.fr> wrote:

> I have to change the Combo items according to another Combo.
>
> This works except the fact i see preeceding selecyed text allthought the
> new items are correct...
>
> A way to change that "annoying feature" ?
>
> my code actually is :
>
> Combo cw = (Combo) comboWhatAry.get(idx);
> cw.clearSelection();
> cw.removeAll();
> cw.setItems(comboWhatItems[c.getSelectionIndex()]);
>
> c being anothe Combo...


found using cw.select(0);...
Previous Topic:Swing's feature JButton.doClick()
Next Topic:JMF player in SWT GUI
Goto Forum:
  


Current Time: Thu Apr 25 08:07:15 GMT 2024

Powered by FUDForum. Page generated in 0.03306 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top