Rounded corners and drop shadow displaying is not a problem for Borders API
Borders API provides a toolkit for borders rendering. Currently only two types of borders supported:
Both implementations have similar set of features:
You can find sample of Borders API usage below.
The next sample illustrates how to create and display a border with a shadow.
RoundCornerBorder border = new RoundCornerBorder(); border.addStyleName("border"); border.setWidget(new Label("Shadow under the border")); layout.setWidget(3, 0, border); border.setShadowVisibile(true);