0
我用Vaadin 7.我试着用下面的代码更改组件的图标:无法更改树图标Vaadin
Tree tree = new Tree("The Planets and Major Moons");
tree.setIcon(new ThemeResource("img/inode-directory.png"));
.... //here I fill the tree
当我运行应用程序,我仍然得到同样的图标(默认图标) Vaadin树。有什么我忘了补充吗?
你想设置哪个图标?树中的项目还是...?可能需要指定项目级别上的图标 –
我想为所有树组件设置图标。在'tree.setIcon()'描述中,他们说它设置了所有组件的图标。 – deltascience