.setValue(new ClassResource("fi.gif", this));
item.getItemProperty("country").setValue("Finland");
item = table.addItem("SE");
- item.getItemProperty("icon")
- .setValue(new ClassResource("se.gif", this));
+ item.getItemProperty("icon").setValue(
+ new ClassResource("/"
+ + IntegrationTestApplication.class
+ .getName()
+ .replace('.', '/')
+ .replaceAll(
+ IntegrationTestApplication.class
+ .getSimpleName() + "$", "")
+ + "/se.gif", this));
item.getItemProperty("country").setValue("Sweden");
final Label selectedLabel = new Label();