I have this code inside the constructor of one of my widgets(using uibinder)-
lbnames = new ListBox(true); lbnames.setWidth("11em"); lbnames.setVisibleItemCount(3); initWidget(binder.createAndBindUi(this)); lbnames.addItem("Item1"); lbnames.setItemSelected(0, true); lbnames.addItem("item2"); lbnames.setItemSelected(1, true); I expect, the above code will select both the list items by default. But it does not. It adds the two items but with only one visible item. How can I multi select by default in a listbox? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.