TusharJoshi
5 Dec 2011, 12:42 AM
Hi All,
I want to align combo box and its label to right of panel. I have tried by various options but its not moving at right of panel.
FormPanel panel = new FormPanel();
panel.setWidth("100%");
panel.setLabelAlign(LabelAlign.RIGHT);
ListStore<Stock> store = new ListStore<Stock>();
store.add(TestData.getStocks());
ComboBox<Stock> combo = new ComboBox<Stock>();
combo.setFieldLabel("Company");
combo.setDisplayField("name");
combo.setTriggerAction(TriggerAction.ALL);
combo.setStore(store);
panel.add(combo);
viewport.add(panel);
RootPanel.get().add(viewport);
Can anybody suggest me how to align it to right.
Thanks
Tushar
I want to align combo box and its label to right of panel. I have tried by various options but its not moving at right of panel.
FormPanel panel = new FormPanel();
panel.setWidth("100%");
panel.setLabelAlign(LabelAlign.RIGHT);
ListStore<Stock> store = new ListStore<Stock>();
store.add(TestData.getStocks());
ComboBox<Stock> combo = new ComboBox<Stock>();
combo.setFieldLabel("Company");
combo.setDisplayField("name");
combo.setTriggerAction(TriggerAction.ALL);
combo.setStore(store);
panel.add(combo);
viewport.add(panel);
RootPanel.get().add(viewport);
Can anybody suggest me how to align it to right.
Thanks
Tushar