Hi all,
I'm trying to display an SVG image in a tabset. The behaviour si quite strange as the first tab displays correctly while the others doesn't display any info.
If I remove the SVGPanel, and only set the image to be displayed, then every tab behaves correctly and the image appears in all of them
Any idea. Please I need help!!!
The code is:
I'm trying to display an SVG image in a tabset. The behaviour si quite strange as the first tab displays correctly while the others doesn't display any info.
If I remove the SVGPanel, and only set the image to be displayed, then every tab behaves correctly and the image appears in all of them
Any idea. Please I need help!!!
The code is:
Code:
// SVGXXX are GWT Widgets
for (int i=0; i<3; i++) {
SVGPanel p = new SVGPanel(70, 70);
SVGRectangle svgRect = p.createRectangle(0, 0, 50, 30);
svgRect.setStroke(Color.DarkGray).setStrokeWidth(2).setFill(Color.LightGrey);
p.add(svgRect);
Tab floorTab = new Tab("Floor " + i);
Img floorImg = new Img("plano.jpg", 450, 450);
HLayout h = new HLayout();
h.addMember(floorImg);
h.addMember(p);
floorTab.setPane(h);
tabSet.addTab(floorTab);
}