[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] help setting default on combo w/o selection
|
Hey all,
Have a tiny problem with the Combo box:
I want to set the default selection on the widget without having it look
like it's selected. I'm currently doing this:
state = new Combo(composite, SWT.NONE);
State[] states = teamtask.getStates();
state.setItems(buildStrings(states));
state.setText(teamtask.getState().getDescription());
Previously I was using state.setSelection(index), but that of course sets
the selection.
thanks,
Todd