我在gridLayout中使用Vaadin Slider但是滑块是不可见的,只有标题在那里。这是我的代码:
GridLayout gridField = new GridLayout(2, 3);
gridField.setWidth(100.0f, Unit.PERCENTAGE);
gridField.setSpacing(true);
Slider slider=new Slider("name " ,0,100);
slider.setWidth(100.0f, Unit.PERCENTAGE);slider.setImmediate(true);
gridField.addComponent(slider);
请问您有什么想法吗?