Thursday, September 23, 2010

Issue about adding image icons into FlowPanel

I need to add some small image icons(16*16) into a flowPanel. But the
image icons do not lay on a line. Each image icon occupies one line.
Can some one tells me what the problem is. My code sample is below:

FlowPanel toolPanel = new FlowPanel();
Images images = GWT.create(Images.class);
PushButton openButton = new PushButton(new Image(images.open()));
toolPanel.add(openButton);
PushButton cutButton = new PushButton(new Image(images.cut()));
toolPanel.add(cutButton);
PushButton pasteButton = new PushButton(new Image(images.paste()));
toolPanel.add(pasteButton);

Thanks for help.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment