ListBox listBox = new ListBox();
// Assuming a bunch of items were added to listBox....
SelectElement selectElement = SelectElement.as(listBox.getElement());NodeList<OptionElement> options = selectElement.getOptions();for (int i = 0; i < options.getLength(); i++) {options.getItem(i).getStyle().setColor("#FF0000");}
It can be changed using listBox.setStyleName();
On Friday, January 18, 2013 6:55:22 PM UTC+5:30, Nicholas DiMucci wrote:*blows cobwebs off this thread*Can anyone answer this question? I'm looking to change the font color of individual items within a ListBox.